2023-11-22 09:08:11 -05:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: {{ include "..fullname" . }}-frontend
|
|
|
|
labels: {{- include "..labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
{{- include "..selectorLabels" . | nindent 6 }}
|
|
|
|
component: frontend
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
{{- include "..selectorLabels" . | nindent 8 }}
|
|
|
|
component: frontend
|
|
|
|
spec:
|
2024-01-16 07:59:33 -05:00
|
|
|
hostPID: true
|
2023-11-22 09:08:11 -05:00
|
|
|
containers:
|
|
|
|
- name: strongswan
|
2024-01-16 07:59:33 -05:00
|
|
|
image: {{ .Values.image | quote }}
|
|
|
|
command: ["sh", "-x", "/entrypoint.sh"]
|
2023-11-22 09:08:11 -05:00
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
add: ["NET_ADMIN"]
|
|
|
|
volumeMounts:
|
2024-01-16 07:59:33 -05:00
|
|
|
- name: files
|
2023-11-22 09:08:11 -05:00
|
|
|
mountPath: "/entrypoint.sh"
|
|
|
|
subPath: "entrypoint.sh"
|
|
|
|
readOnly: true
|
2024-01-16 07:59:33 -05:00
|
|
|
- name: files
|
2023-11-22 09:08:11 -05:00
|
|
|
mountPath: "/etc/strongswan.d/charon-logging.conf"
|
|
|
|
subPath: "charon-logging.conf"
|
|
|
|
readOnly: true
|
2024-01-16 07:59:33 -05:00
|
|
|
- name: config
|
2023-11-22 09:08:11 -05:00
|
|
|
mountPath: "/etc/swanctl/swanctl.conf"
|
|
|
|
subPath: "swanctl.conf"
|
|
|
|
readOnly: true
|
2024-01-16 07:59:33 -05:00
|
|
|
- name: cilium-setup
|
|
|
|
image: {{ .Values.image | quote }}
|
|
|
|
command: ["sh", "/scripts/sidecar.sh"]
|
|
|
|
env: {{- include "..commonEnv" . | nindent 10 }}
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: files
|
|
|
|
mountPath: "/scripts"
|
|
|
|
readOnly: true
|
2023-11-22 09:08:11 -05:00
|
|
|
volumes:
|
2024-01-16 07:59:33 -05:00
|
|
|
- name: files
|
2023-11-22 09:08:11 -05:00
|
|
|
configMap:
|
2024-01-16 07:59:33 -05:00
|
|
|
name: {{ include "..fullname" . }}-strongswan
|
|
|
|
- name: config
|
|
|
|
secret:
|
|
|
|
secretName: {{ include "..fullname" . }}-strongswan
|