-
Notifications
You must be signed in to change notification settings - Fork 91
/
sync_ds_scenario_1.yaml
executable file
·202 lines (201 loc) · 6.09 KB
/
sync_ds_scenario_1.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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
openshiftapiservers.operator.openshift.io/operator-pull-spec: ""
operator.openshift.io/spec-hash: "8ee33dafe676726b34f44c7d7ea1db1d8e318c29232044323695da5d52342f56"
creationTimestamp: ~
labels:
apiserver: "true"
app: openshift-oauth-apiserver
revision: '0'
name: apiserver
namespace: openshift-oauth-apiserver
spec:
replicas: 1
selector:
matchLabels:
apiserver: "true"
app: openshift-oauth-apiserver
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
template:
metadata:
creationTimestamp: ~
labels:
apiserver: "true"
app: openshift-oauth-apiserver
revision: '0'
name: openshift-oauth-apiserver
annotations:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
spec:
containers:
-
args:
- |
if [ -s /var/run/configmaps/trusted-ca-bundle/tls-ca-bundle.pem ]; then
echo "Copying system trust bundle"
cp -f /var/run/configmaps/trusted-ca-bundle/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
fi
exec oauth-apiserver start \
--secure-port=8443 \
--audit-log-path=/var/log/oauth-apiserver/audit.log \
--audit-log-format=json \
--audit-log-maxsize=100 \
--audit-log-maxbackup=10 \
--audit-policy-file=/var/run/configmaps/audit/policy.yaml \
--etcd-cafile=/var/run/configmaps/etcd-serving-ca/ca-bundle.crt \
--etcd-keyfile=/var/run/secrets/etcd-client/tls.key \
--etcd-certfile=/var/run/secrets/etcd-client/tls.crt \
--shutdown-delay-duration=15s \
--tls-private-key-file=/var/run/secrets/serving-cert/tls.key \
--tls-cert-file=/var/run/secrets/serving-cert/tls.crt \
--v=2
command:
- /bin/bash
- "-ec"
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
scheme: HTTPS
port: 8443
path: healthz
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
scheme: HTTPS
port: 8443
path: readyz
initialDelaySeconds: 0
periodSeconds: 5
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 1
startupProbe:
httpGet:
scheme: HTTPS
port: 8443
path: healthz
initialDelaySeconds: 0
periodSeconds: 5
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 30
name: oauth-apiserver
ports:
-
containerPort: 8443
resources:
requests:
cpu: 150m
memory: 200Mi
securityContext:
privileged: true
runAsUser: 0
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
-
mountPath: /var/run/configmaps/audit
name: audit-policies
-
mountPath: /var/run/secrets/etcd-client
name: etcd-client
-
mountPath: /var/run/configmaps/etcd-serving-ca
name: etcd-serving-ca
-
mountPath: /var/run/configmaps/trusted-ca-bundle
name: trusted-ca-bundle
-
mountPath: /var/run/secrets/serving-cert
name: serving-cert
-
mountPath: /var/run/secrets/encryption-config
name: encryption-config
-
mountPath: /var/log/oauth-apiserver
name: audit-dir
initContainers:
-
command:
- sh
- "-c"
- "chmod 0700 /var/log/oauth-apiserver && touch /var/log/oauth-apiserver/audit.log && chmod 0600 /var/log/oauth-apiserver/*"
imagePullPolicy: IfNotPresent
name: fix-audit-permissions
resources:
requests:
cpu: 15m
memory: 50Mi
securityContext:
privileged: true
runAsUser: 0
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
-
mountPath: /var/log/oauth-apiserver
name: audit-dir
nodeSelector:
node-role.kubernetes.io/master: ""
priorityClassName: system-node-critical
serviceAccountName: oauth-apiserver-sa
terminationGracePeriodSeconds: 90
tolerations:
-
effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
-
effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 120
-
effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 120
volumes:
-
configMap:
name: audit-0
name: audit-policies
-
name: etcd-client
secret:
secretName: etcd-client
-
configMap:
name: etcd-serving-ca
name: etcd-serving-ca
-
name: serving-cert
secret:
secretName: serving-cert
-
configMap:
items:
-
key: ca-bundle.crt
path: tls-ca-bundle.pem
name: trusted-ca-bundle
optional: true
name: trusted-ca-bundle
-
name: encryption-config
secret:
optional: true
secretName: encryption-config-0
-
hostPath:
path: /var/log/oauth-apiserver
name: audit-dir
status: {}