47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Values.app }}
|
|
labels:
|
|
app: {{ .Values.app }}
|
|
namespace: spearhead-docs
|
|
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Values.app }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Values.app }}
|
|
annotations:
|
|
deployment-timestamp: "{{ now.Unix }}"
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 65534
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: {{ .Values.app }}
|
|
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: {{ .Values.ports.containerPort }}
|
|
volumeMounts:
|
|
- name: cache
|
|
mountPath: /var/cache/nginx
|
|
- name: run
|
|
mountPath: /var/run
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
volumes:
|
|
- name: cache
|
|
emptyDir: {}
|
|
- name: run
|
|
emptyDir: {}
|
|
|