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:
Devin Buhl committed 2024-04-17 17:12:49 -04:00
1 parent d3307de9fa
commit 2601f18d90
6 files changed
+16 -27

No files matched your search

@@ -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 %#
@@ -67,18 +67,17 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
seccompProfile:
type: RuntimeDefault
resources:
requests:
cpu: 10m
limits:
memory: 256Mi
pod:
defaultPodOptions:
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
runAsNonRoot: true
seccompProfile: { type: RuntimeDefault }
service:
app:
controller: cloudflared
@@ -51,18 +51,17 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
seccompProfile:
type: RuntimeDefault
resources:
requests:
cpu: 10m
limits:
memory: 64Mi
pod:
defaultPodOptions:
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
runAsNonRoot: true
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
@@ -48,13 +48,12 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
seccompProfile:
type: RuntimeDefault
pod:
defaultPodOptions:
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
runAsNonRoot: true
seccompProfile: { type: RuntimeDefault }
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -10,8 +10,9 @@ 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 %#
@@ -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
@@ -10,8 +10,9 @@ 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 %#