This repository has been archived by the owner on Aug 29, 2022. It is now read-only.
forked from onedata/certificate-init-container
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtls-app.yaml
69 lines (69 loc) · 1.68 KB
/
tls-app.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: tls-app
labels:
app: tls-app
spec:
replicas: 1
selector:
matchLabels:
app: tls-app
template:
metadata:
labels:
app: tls-app
spec:
initContainers:
- name: certificate-init-container
image: proofpoint/certificate-init-container:v0.9.0
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
args:
- "-namespace=$(NAMESPACE)"
- "-pod-name=$(POD_NAME)"
- "-query-k8s"
resources:
limits:
cpu: 100m
memory: 50Mi
requests:
cpu: 30m
memory: 10Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
runAsNonRoot: true
volumeMounts:
- name: tls
mountPath: /etc/tls
containers:
- name: tls-app
image: gcr.io/hightowerlabs/tls-app:1.0.0
args:
- "-tls-cert=/etc/tls/tls.crt"
- "-tls-key=/etc/tls/tls.key"
ports:
- containerPort: 443
resources:
limits:
memory: "50Mi"
cpu: "100m"
requests:
memory: "40Mi"
cpu: "100m"
volumeMounts:
- name: tls
mountPath: /etc/tls
volumes:
- name: tls
emptyDir: {}