-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
66 lines (66 loc) · 1.46 KB
/
deployment.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
generation: 1
labels:
app: apn
name: apn
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: apn
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: apn
spec:
containers:
- image: joonix/apn
imagePullPolicy: Always
name: apn
resources: {}
terminationMessagePath: /dev/termination-log
args:
- app
- -project=$(PROJECT)
- -bundleID=$(bundle)
- -cert=/secrets/tls.crt
- -key=/secrets/tls.key
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 30
env:
- name: PROJECT
valueFrom:
configMapKeyRef:
name: apn
key: project
- name: bundle
valueFrom:
configMapKeyRef:
name: apn
key: bundle
volumeMounts:
- name: secrets
mountPath: /secrets
readOnly: true
volumes:
- name: secrets
secret:
secretName: "apple-developer"
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
status: {}