diff --git a/bootstrap/templates/kubernetes/apps/flux-system/webhooks/app/github/ingress.yaml.j2 b/bootstrap/templates/kubernetes/apps/flux-system/webhooks/app/github/ingress.yaml.j2 index e704eed3..17171674 100644 --- a/bootstrap/templates/kubernetes/apps/flux-system/webhooks/app/github/ingress.yaml.j2 +++ b/bootstrap/templates/kubernetes/apps/flux-system/webhooks/app/github/ingress.yaml.j2 @@ -9,7 +9,7 @@ metadata: spec: ingressClassName: external rules: - - host: &host "flux-webhook.${SECRET_DOMAIN}" + - host: "flux-webhook.${SECRET_DOMAIN}" http: paths: - path: /hook/ @@ -19,7 +19,4 @@ spec: name: webhook-receiver port: number: 80 - tls: - - hosts: - - *host #% endif %# diff --git a/bootstrap/templates/kubernetes/apps/network/cloudflared/app/helmrelease.yaml.j2 b/bootstrap/templates/kubernetes/apps/network/cloudflared/app/helmrelease.yaml.j2 index ca7fd3ff..ade8d52e 100644 --- a/bootstrap/templates/kubernetes/apps/network/cloudflared/app/helmrelease.yaml.j2 +++ b/bootstrap/templates/kubernetes/apps/network/cloudflared/app/helmrelease.yaml.j2 @@ -67,18 +67,17 @@ spec: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: { drop: ["ALL"] } - seccompProfile: - type: RuntimeDefault resources: requests: cpu: 10m limits: memory: 256Mi - pod: - securityContext: - runAsUser: 65534 - runAsGroup: 65534 - runAsNonRoot: true + defaultPodOptions: + securityContext: + runAsNonRoot: true + runAsUser: 65534 + runAsGroup: 65534 + seccompProfile: { type: RuntimeDefault } service: app: controller: cloudflared diff --git a/bootstrap/templates/kubernetes/apps/network/echo-server/app/helmrelease.yaml.j2 b/bootstrap/templates/kubernetes/apps/network/echo-server/app/helmrelease.yaml.j2 index f77cc59b..129bd3f9 100644 --- a/bootstrap/templates/kubernetes/apps/network/echo-server/app/helmrelease.yaml.j2 +++ b/bootstrap/templates/kubernetes/apps/network/echo-server/app/helmrelease.yaml.j2 @@ -51,18 +51,17 @@ spec: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: { drop: ["ALL"] } - seccompProfile: - type: RuntimeDefault resources: requests: cpu: 10m limits: memory: 64Mi - pod: - securityContext: - runAsUser: 65534 - runAsGroup: 65534 - runAsNonRoot: true + defaultPodOptions: + securityContext: + runAsNonRoot: true + runAsUser: 65534 + runAsGroup: 65534 + seccompProfile: { type: RuntimeDefault } service: app: controller: echo-server @@ -84,12 +83,9 @@ spec: annotations: external-dns.alpha.kubernetes.io/target: "external.${SECRET_DOMAIN}" hosts: - - host: &host "{{ .Release.Name }}.${SECRET_DOMAIN}" + - host: "{{ .Release.Name }}.${SECRET_DOMAIN}" paths: - path: / service: identifier: app port: http - tls: - - hosts: - - *host diff --git a/bootstrap/templates/kubernetes/apps/system-upgrade/system-upgrade-controller/app/helmrelease.yaml.j2 b/bootstrap/templates/kubernetes/apps/system-upgrade/system-upgrade-controller/app/helmrelease.yaml.j2 index aeba817e..f12c6e21 100644 --- a/bootstrap/templates/kubernetes/apps/system-upgrade/system-upgrade-controller/app/helmrelease.yaml.j2 +++ b/bootstrap/templates/kubernetes/apps/system-upgrade/system-upgrade-controller/app/helmrelease.yaml.j2 @@ -48,29 +48,28 @@ spec: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: { drop: ["ALL"] } - seccompProfile: - type: RuntimeDefault - pod: - securityContext: - runAsUser: 65534 - runAsGroup: 65534 - runAsNonRoot: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: node-role.kubernetes.io/control-plane - operator: Exists - tolerations: - - key: CriticalAddonsOnly - operator: Exists - - key: node-role.kubernetes.io/control-plane - operator: Exists - effect: NoSchedule - - key: node-role.kubernetes.io/master - operator: Exists - effect: NoSchedule + defaultPodOptions: + securityContext: + runAsNonRoot: true + runAsUser: 65534 + runAsGroup: 65534 + seccompProfile: { type: RuntimeDefault } + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: Exists + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule serviceAccount: create: true name: system-upgrade diff --git a/bootstrap/templates/partials/cilium-values-full.partial.yaml.j2 b/bootstrap/templates/partials/cilium-values-full.partial.yaml.j2 index 2b5f72ce..69bcd2b8 100644 --- a/bootstrap/templates/partials/cilium-values-full.partial.yaml.j2 +++ b/bootstrap/templates/partials/cilium-values-full.partial.yaml.j2 @@ -10,11 +10,12 @@ cgroup: cluster: id: 1 name: #{ bootstrap_cluster_name|default('home-kubernetes', true) }# -#% if bootstrap_distribution in ["k3s"] %# cni: + exclusive: false + #% if bootstrap_distribution in ["k3s"] %# binPath: /var/lib/rancher/k3s/data/current/bin confPath: /var/lib/rancher/k3s/agent/etc/cni/net.d -#% endif %# + #% endif %# containerRuntime: integration: containerd #% if bootstrap_distribution in ["k3s"] %# @@ -54,11 +55,7 @@ hubble: ingress: enabled: true className: internal - hosts: - - "hubble.${SECRET_DOMAIN}" - tls: - - hosts: - - "hubble.${SECRET_DOMAIN}" + hosts: ["hubble.${SECRET_DOMAIN}"] #% else %# hubble: enabled: false diff --git a/bootstrap/templates/partials/cilium-values-init.partial.yaml.j2 b/bootstrap/templates/partials/cilium-values-init.partial.yaml.j2 index 1348e09e..00ae17f6 100644 --- a/bootstrap/templates/partials/cilium-values-init.partial.yaml.j2 +++ b/bootstrap/templates/partials/cilium-values-init.partial.yaml.j2 @@ -10,11 +10,12 @@ cgroup: cluster: id: 1 name: #{ bootstrap_cluster_name|default('home-kubernetes', true) }# -#% if bootstrap_distribution in ["k3s"] %# cni: + exclusive: false + #% if bootstrap_distribution in ["k3s"] %# binPath: /var/lib/rancher/k3s/data/current/bin confPath: /var/lib/rancher/k3s/agent/etc/cni/net.d -#% endif %# + #% endif %# containerRuntime: integration: containerd #% if bootstrap_distribution in ["k3s"] %#