Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 31 additions & 42 deletions .eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .github/workflows/upgrade-main.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/helmCharts/node-problem-detector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ name: node-problem-detector
sources:
- https://github.com/kubernetes/node-problem-detector
- https://kubernetes.io/docs/concepts/architecture/nodes/#condition
version: 2.3.18
version: 2.3.21
6 changes: 4 additions & 2 deletions assets/helmCharts/node-problem-detector/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# node-problem-detector

![Version: 2.3.18](https://img.shields.io/badge/Version-2.3.18-informational?style=flat-square) ![AppVersion: v0.8.20](https://img.shields.io/badge/AppVersion-v0.8.20-informational?style=flat-square)
![Version: 2.3.21](https://img.shields.io/badge/Version-2.3.21-informational?style=flat-square) ![AppVersion: v0.8.20](https://img.shields.io/badge/AppVersion-v0.8.20-informational?style=flat-square)

This chart installs a [node-problem-detector](https://github.com/kubernetes/node-problem-detector) daemonset. This tool aims to make various node problems visible to the upstream layers in cluster management stack. It is a daemon which runs on each node, detects node problems and reports them to apiserver.

Expand All @@ -17,7 +17,7 @@ helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/node-problem
To install a specific version of this chart:

```console
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/node-problem-detector --version 2.3.18
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/node-problem-detector --version 2.3.21
```

To install the chart with the release name `my-release`:
Expand Down Expand Up @@ -49,6 +49,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/node-problem-dete
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| annotations | object | `{}` | |
| dnsConfig | object | `{}` | |
| dnsPolicy | string | `"ClusterFirst"` | |
| env | string | `nil` | |
| extraContainers | list | `[]` | |
Expand Down Expand Up @@ -99,6 +100,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/node-problem-dete
| tolerations[0].effect | string | `"NoSchedule"` | |
| tolerations[0].operator | string | `"Exists"` | |
| updateStrategy | string | `"RollingUpdate"` | Manage the daemonset update strategy |
| volume.localtime.enabled | bool | `true` | |
| volume.localtime.type | string | `"FileOrCreate"` | |

## Maintainers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ spec:
hostNetwork: {{ .Values.hostNetwork }}
hostPID: {{ .Values.hostPID }}
dnsPolicy: {{ .Values.dnsPolicy }}
{{- if .Values.dnsConfig }}
dnsConfig: {{ toYaml .Values.dnsConfig | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: 30
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
Expand Down Expand Up @@ -77,9 +80,11 @@ spec:
- name: log
mountPath: {{ default (default "/var/log/" .Values.logDir.host) .Values.logDir.pod }}
readOnly: true
{{- if ((.Values.volume).localtime).enabled }}
- name: localtime
mountPath: /etc/localtime
readOnly: true
{{- end }}
- name: custom-config
mountPath: /custom-config
readOnly: true
Expand Down Expand Up @@ -110,10 +115,12 @@ spec:
- name: log
hostPath:
path: {{ default "/var/log/" .Values.logDir.host }}
{{- if ((.Values.volume).localtime).enabled }}
- name: localtime
hostPath:
path: /etc/localtime
type: {{ default "FileOrCreate" .Values.volume.localtime.type }}
{{- end }}
- name: custom-config
configMap:
name: {{ include "node-problem-detector.customConfig" . }}
Expand Down
6 changes: 6 additions & 0 deletions assets/helmCharts/node-problem-detector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,15 @@ rbac:
hostNetwork: false
hostPID: false
dnsPolicy: "ClusterFirst"
dnsConfig: {}
# options:
# - name: ndots
# value: "2"
# - name: edns0

volume:
localtime:
enabled: true
type: "FileOrCreate"

priorityClassName: system-node-critical
Expand Down
8 changes: 4 additions & 4 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/constructs/eks-cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ export class EKSCluster extends Construct {
JSON.parse(JSON.stringify(nodeGroup.labels)),
);
// eslint-disable-next-line max-len
const nodeSubnets: ec2.SubnetSelection | undefined = nodeGroup.subnetAz ? { subnetGroupName: nodeGroup.subnetGroupName, availabilityZones: nodeGroup.subnetAz } : {
const nodeSubnets: ec2.SubnetSelection | undefined = nodeGroup.subnetAz ? {
subnetGroupName: nodeGroup.subnetGroupName,
};

availabilityZones: nodeGroup.subnetAz,
} : { subnetGroupName: nodeGroup.subnetGroupName };
if (nodeGroup?.sshKeyName) {
const node = new eks.Nodegroup(this, nodeGroup.name, {
cluster: this.cluster,
Expand Down Expand Up @@ -608,7 +608,7 @@ export class EKSCluster extends Construct {
'node-problem-detector': {
helm: {
chartName: 'node-problem-detector',
chartVersion: '2.3.18',
chartVersion: '2.3.21',
localHelmChart: `${__dirname}/../../assets/helmCharts/node-problem-detector`,
namespace: 'kube-system',
helmValues: {
Expand Down
5 changes: 5 additions & 0 deletions src/constructs/eks-managed-addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ export class VpcCniAddonVersion extends AddonVersion {
*/
public static readonly V1_19_3_1 = VpcCniAddonVersion.of('v1.19.3-eksbuild.1');

/**
* vpc-cni version 1.19.5
*/
public static readonly V1_19_5_3 = VpcCniAddonVersion.of('v1.19.5-eksbuild.3');

/**
* Custom add-on version
* @param version custom add-on version
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.dev.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading