fix: cilium not exclusive CNI, remove ingress tls block and use defaultPodOptions in app-template workloads
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
6 files changed
+43
-54
No files matched your search
@@ -9,7 +9,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ingressClassName: external
|
ingressClassName: external
|
||||||
rules:
|
rules:
|
||||||
- host: &host "flux-webhook.${SECRET_DOMAIN}"
|
- host: "flux-webhook.${SECRET_DOMAIN}"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /hook/
|
- path: /hook/
|
||||||
@@ -19,7 +19,4 @@ spec:
|
|||||||
name: webhook-receiver
|
name: webhook-receiver
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- *host
|
|
||||||
#% endif %#
|
#% endif %#
|
||||||
@@ -67,18 +67,17 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
capabilities: { drop: ["ALL"] }
|
capabilities: { drop: ["ALL"] }
|
||||||
seccompProfile:
|
|
||||||
type: RuntimeDefault
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
limits:
|
limits:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
pod:
|
defaultPodOptions:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 65534
|
runAsNonRoot: true
|
||||||
runAsGroup: 65534
|
runAsUser: 65534
|
||||||
runAsNonRoot: true
|
runAsGroup: 65534
|
||||||
|
seccompProfile: { type: RuntimeDefault }
|
||||||
service:
|
service:
|
||||||
app:
|
app:
|
||||||
controller: cloudflared
|
controller: cloudflared
|
||||||
|
|||||||
@@ -51,18 +51,17 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
capabilities: { drop: ["ALL"] }
|
capabilities: { drop: ["ALL"] }
|
||||||
seccompProfile:
|
|
||||||
type: RuntimeDefault
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
limits:
|
limits:
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
pod:
|
defaultPodOptions:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 65534
|
runAsNonRoot: true
|
||||||
runAsGroup: 65534
|
runAsUser: 65534
|
||||||
runAsNonRoot: true
|
runAsGroup: 65534
|
||||||
|
seccompProfile: { type: RuntimeDefault }
|
||||||
service:
|
service:
|
||||||
app:
|
app:
|
||||||
controller: echo-server
|
controller: echo-server
|
||||||
@@ -84,12 +83,9 @@ spec:
|
|||||||
annotations:
|
annotations:
|
||||||
external-dns.alpha.kubernetes.io/target: "external.${SECRET_DOMAIN}"
|
external-dns.alpha.kubernetes.io/target: "external.${SECRET_DOMAIN}"
|
||||||
hosts:
|
hosts:
|
||||||
- host: &host "{{ .Release.Name }}.${SECRET_DOMAIN}"
|
- host: "{{ .Release.Name }}.${SECRET_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
service:
|
service:
|
||||||
identifier: app
|
identifier: app
|
||||||
port: http
|
port: http
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- *host
|
|
||||||
+22
-23
@@ -48,29 +48,28 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
capabilities: { drop: ["ALL"] }
|
capabilities: { drop: ["ALL"] }
|
||||||
seccompProfile:
|
defaultPodOptions:
|
||||||
type: RuntimeDefault
|
securityContext:
|
||||||
pod:
|
runAsNonRoot: true
|
||||||
securityContext:
|
runAsUser: 65534
|
||||||
runAsUser: 65534
|
runAsGroup: 65534
|
||||||
runAsGroup: 65534
|
seccompProfile: { type: RuntimeDefault }
|
||||||
runAsNonRoot: true
|
affinity:
|
||||||
affinity:
|
nodeAffinity:
|
||||||
nodeAffinity:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
nodeSelectorTerms:
|
||||||
nodeSelectorTerms:
|
- matchExpressions:
|
||||||
- matchExpressions:
|
- key: node-role.kubernetes.io/control-plane
|
||||||
- key: node-role.kubernetes.io/control-plane
|
operator: Exists
|
||||||
operator: Exists
|
tolerations:
|
||||||
tolerations:
|
- key: CriticalAddonsOnly
|
||||||
- key: CriticalAddonsOnly
|
operator: Exists
|
||||||
operator: Exists
|
- key: node-role.kubernetes.io/control-plane
|
||||||
- key: node-role.kubernetes.io/control-plane
|
operator: Exists
|
||||||
operator: Exists
|
effect: NoSchedule
|
||||||
effect: NoSchedule
|
- key: node-role.kubernetes.io/master
|
||||||
- key: node-role.kubernetes.io/master
|
operator: Exists
|
||||||
operator: Exists
|
effect: NoSchedule
|
||||||
effect: NoSchedule
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
create: true
|
create: true
|
||||||
name: system-upgrade
|
name: system-upgrade
|
||||||
|
|||||||
@@ -10,11 +10,12 @@ cgroup:
|
|||||||
cluster:
|
cluster:
|
||||||
id: 1
|
id: 1
|
||||||
name: #{ bootstrap_cluster_name|default('home-kubernetes', true) }#
|
name: #{ bootstrap_cluster_name|default('home-kubernetes', true) }#
|
||||||
#% if bootstrap_distribution in ["k3s"] %#
|
|
||||||
cni:
|
cni:
|
||||||
|
exclusive: false
|
||||||
|
#% if bootstrap_distribution in ["k3s"] %#
|
||||||
binPath: /var/lib/rancher/k3s/data/current/bin
|
binPath: /var/lib/rancher/k3s/data/current/bin
|
||||||
confPath: /var/lib/rancher/k3s/agent/etc/cni/net.d
|
confPath: /var/lib/rancher/k3s/agent/etc/cni/net.d
|
||||||
#% endif %#
|
#% endif %#
|
||||||
containerRuntime:
|
containerRuntime:
|
||||||
integration: containerd
|
integration: containerd
|
||||||
#% if bootstrap_distribution in ["k3s"] %#
|
#% if bootstrap_distribution in ["k3s"] %#
|
||||||
@@ -54,11 +55,7 @@ hubble:
|
|||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: internal
|
className: internal
|
||||||
hosts:
|
hosts: ["hubble.${SECRET_DOMAIN}"]
|
||||||
- "hubble.${SECRET_DOMAIN}"
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- "hubble.${SECRET_DOMAIN}"
|
|
||||||
#% else %#
|
#% else %#
|
||||||
hubble:
|
hubble:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -10,11 +10,12 @@ cgroup:
|
|||||||
cluster:
|
cluster:
|
||||||
id: 1
|
id: 1
|
||||||
name: #{ bootstrap_cluster_name|default('home-kubernetes', true) }#
|
name: #{ bootstrap_cluster_name|default('home-kubernetes', true) }#
|
||||||
#% if bootstrap_distribution in ["k3s"] %#
|
|
||||||
cni:
|
cni:
|
||||||
|
exclusive: false
|
||||||
|
#% if bootstrap_distribution in ["k3s"] %#
|
||||||
binPath: /var/lib/rancher/k3s/data/current/bin
|
binPath: /var/lib/rancher/k3s/data/current/bin
|
||||||
confPath: /var/lib/rancher/k3s/agent/etc/cni/net.d
|
confPath: /var/lib/rancher/k3s/agent/etc/cni/net.d
|
||||||
#% endif %#
|
#% endif %#
|
||||||
containerRuntime:
|
containerRuntime:
|
||||||
integration: containerd
|
integration: containerd
|
||||||
#% if bootstrap_distribution in ["k3s"] %#
|
#% if bootstrap_distribution in ["k3s"] %#
|
||||||
|
|||||||
Reference in new issue
Block a user