-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathre-deploy.yml
86 lines (82 loc) · 2.34 KB
/
re-deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
app: regular-encourager
name: regular-encourager
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: regular-encourager
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: regular-encourager
spec:
initContainers:
- name: init-authorization-check
image: busybox
command: ["/bin/sh"]
args: ["-c", "sleep 10; echo /dev/null > shared_data/login_authorization.txt; echo ALLOWED ReadOnly Access > shared_data/login_authorization.txt;"]
volumeMounts:
- name: shared-data
mountPath: shared_data
containers:
- env:
- name: GREETING_FROM_ENVIRONMENT_VARIABLE
value: HOLA!
- name: FAREWELL_FROM_ENVIRONMENT_VARIABLE
valueFrom:
configMapKeyRef:
key: FAREWELL_FROM_ENVIRONMENT_VARIABLE
name: re-config
- name: ENCOURAGE_PASSWORD
valueFrom:
secretKeyRef:
key: PASSWORD
name: regenc-secret
image: 1dropaflame/encourage:1.0.10
imagePullPolicy: IfNotPresent
name: encourage
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /mnt/c/Users/Anil/Documents/Projects/regular-encourager
name: config-volume
- mountPath: /app/logs
name: logs
- mountPath: /app/shared_data
name: shared-data
- name: sidecar
image: busybox
command: ["/bin/sh"]
args: ["-c", "while true; do date >> /pod-data/logging_date.txt; sleep 10;done"]
volumeMounts:
- name: shared-data
mountPath: /pod-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
name: myindex
name: config-volume
- name: shared-data
emptyDir: {}
- name: logs
emptyDir: {}