37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
{{- if .Values.frp.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-frpc
|
|
spec:
|
|
replicas: 1
|
|
strategy: {type: Recreate}
|
|
selector:
|
|
matchLabels: {app.kubernetes.io/instance: {{ .Release.Name }}, app.kubernetes.io/component: frpc}
|
|
template:
|
|
metadata:
|
|
labels: {app.kubernetes.io/instance: {{ .Release.Name }}, app.kubernetes.io/component: frpc}
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 65532
|
|
seccompProfile: {type: RuntimeDefault}
|
|
containers:
|
|
- name: frpc
|
|
image: ghcr.io/fatedier/frpc:v0.69.1@sha256:5a1b2cbcec588f1def1de6c5bc372e5f6783f78a151aecb4aae99fcebb9b573a
|
|
args: [-c, /etc/frp/frpc.toml]
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities: {drop: [ALL]}
|
|
resources:
|
|
requests: {cpu: 10m, memory: 16Mi}
|
|
limits: {cpu: 200m, memory: 64Mi}
|
|
volumeMounts:
|
|
- {name: config, mountPath: /etc/frp, readOnly: true}
|
|
volumes:
|
|
- name: config
|
|
secret: {secretName: {{ .Values.frp.secretName | quote }}}
|
|
{{- end }}
|