This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
125 lines (125 loc) · 3.61 KB
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
{{- include "common.resource-labels" . | indent 4 }}
name: {{ $.Release.Name }}
namespace: {{ $.Release.Namespace }}
spec:
replicas: {{ .Values.replicas | default 1 }}
selector:
matchLabels:
app.kubernetes.io/name: pomerium
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
homecentr.one/antiaffinity: pomerium
{{- include "common.resource-labels" . | indent 8 }}
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
fsGroup: 1000
fsGroupChangePolicy: Always
seccompProfile:
type: RuntimeDefault
seLinuxOptions:
user: system_u
role: system_r
type: container_t
level: s0:c829,c861
automountServiceAccountToken: true
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchExpressions:
- key: homecentr.one/antiaffinity
operator: In
values:
- pomerium
containers:
- args:
- all-in-one
- --pomerium-config=global
- --update-status-from-service=$(POMERIUM_NAMESPACE)/pomerium-proxy
- --metrics-bind-address=$(POD_IP):9090
env:
- name: TMPDIR
value: /tmp
- name: XDG_CACHE_HOME
value: /tmp
- name: POMERIUM_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: pomerium/ingress-controller:{{ .Values.imageTag }}
imagePullPolicy: IfNotPresent
name: pomerium
readinessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: 8443
initialDelaySeconds: 15
periodSeconds: 5
ports:
- containerPort: 8443
name: https
protocol: TCP
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 9090
name: metrics
protocol: TCP
resources: {{ .Values.resources | toYaml | nindent 10 }}
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
readOnlyRootFilesystem : true
procMount: Default
privileged: false
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
seLinuxOptions:
user: system_u
role: system_r
type: container_t
level: s0:c829,c861
volumeMounts:
- mountPath: /tmp
name: tmp
- mountPath: /.local
name: local
nodeSelector:
kubernetes.io/os: linux
securityContext:
runAsNonRoot: true
seLinuxOptions:
user: system_u
role: system_r
type: container_t
level: s0:c829,c861
serviceAccountName: pomerium-controller
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: tmp
- emptyDir: {}
name: local