mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-20 21:34:38 -05:00
473001be55
* vpn: ship our own container image The container image used in the VPN chart should be reproducible and stable. We're sticking close to the original nixery.dev version by building the image with nix ourselves, and then publishing the single layer from the result with Bazel OCI rules. The resulting image should be handled similar to s3proxy: it's built as a part of the Constellation release process and then consumed from a Helm chart in our registry. Co-authored-by: Malte Poll <1780588+malt3@users.noreply.github.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
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:
|
|
hostPID: true
|
|
containers:
|
|
- name: strongswan
|
|
image: {{ .Values.image | quote }}
|
|
command: ["/bin/strongswan.sh"]
|
|
securityContext:
|
|
capabilities:
|
|
add: ["NET_ADMIN"]
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: "/etc/swanctl/swanctl.conf"
|
|
subPath: "swanctl.conf"
|
|
readOnly: true
|
|
- name: cilium-setup
|
|
image: {{ .Values.image | quote }}
|
|
command: ["/bin/sidecar.sh"]
|
|
env: {{- include "..commonEnv" . | nindent 10 }}
|
|
securityContext:
|
|
privileged: true
|
|
volumes:
|
|
- name: config
|
|
secret:
|
|
secretName: {{ include "..fullname" . }}-strongswan
|