-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yaml
816 lines (816 loc) · 29.1 KB
/
project.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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
annotations:
openshift.io/deployment-config.latest-version: "1"
openshift.io/deployment-config.name: moodle
openshift.io/deployment.name: moodle-1
openshift.io/generated-by: OpenShiftWebConsole
openshift.io/scc: anyuid
creationTimestamp: "2020-08-12T08:53:11Z"
generateName: moodle-1-
labels:
app: moodle
deployment: moodle-1
deploymentconfig: moodle
name: moodle-1-gj2r9
namespace: sagar
ownerReferences:
- apiVersion: v1
blockOwnerDeletion: true
controller: true
kind: ReplicationController
name: moodle-1
uid: 3e04b319-dc79-11ea-a97e-0242ac11001f
resourceVersion: "11248"
selfLink: /api/v1/namespaces/sagar/pods/moodle-1-gj2r9
uid: 3ffb0722-dc79-11ea-a97e-0242ac11001f
spec:
containers:
- image: docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590
imagePullPolicy: IfNotPresent
name: moodle
ports:
- containerPort: 8080
protocol: TCP
resources: {}
securityContext:
capabilities:
drop:
- MKNOD
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/app-root/moodledata
name: moodle-1
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-hlqfx
readOnly: true
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: default-dockercfg-jzwc5
nodeName: master
nodeSelector:
node-role.kubernetes.io/compute: "true"
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
seLinuxOptions:
level: s0:c16,c10
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: moodle-1
- name: default-token-hlqfx
secret:
defaultMode: 420
secretName: default-token-hlqfx
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2020-08-12T08:53:11Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2020-08-12T08:54:06Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: null
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2020-08-12T08:53:11Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://228c966c1b600e1462be00eb6ff8281df603293c8e4cb53c607ae89f1eb85d08
image: docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590
imageID: docker-pullable://docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590
lastState: {}
name: moodle
ready: true
restartCount: 0
state:
running:
startedAt: "2020-08-12T08:54:06Z"
hostIP: 172.17.0.31
phase: Running
podIP: 10.128.0.30
qosClass: BestEffort
startTime: "2020-08-12T08:53:11Z"
- apiVersion: v1
kind: Pod
metadata:
annotations:
openshift.io/deployment-config.latest-version: "1"
openshift.io/deployment-config.name: mysql
openshift.io/deployment.name: mysql-1
openshift.io/scc: anyuid
creationTimestamp: "2020-08-12T08:51:48Z"
generateName: mysql-1-
labels:
deployment: mysql-1
deploymentconfig: mysql
name: mysql
name: mysql-1-f8xhz
namespace: sagar
ownerReferences:
- apiVersion: v1
blockOwnerDeletion: true
controller: true
kind: ReplicationController
name: mysql-1
uid: 0c964b5a-dc79-11ea-a97e-0242ac11001f
resourceVersion: "10987"
selfLink: /api/v1/namespaces/sagar/pods/mysql-1-f8xhz
uid: 0ecef0d9-dc79-11ea-a97e-0242ac11001f
spec:
containers:
- env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: database-user
name: mysql
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: database-password
name: mysql
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: database-root-password
name: mysql
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
key: database-name
name: mysql
image: docker-registry.default.svc:5000/openshift/mysql@sha256:e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 3306
timeoutSeconds: 1
name: mysql
ports:
- containerPort: 3306
protocol: TCP
readinessProbe:
exec:
command:
- /bin/sh
- -i
- -c
- MYSQL_PWD="$MYSQL_PASSWORD" mysql -h 127.0.0.1 -u $MYSQL_USER -D $MYSQL_DATABASE
-e 'SELECT 1'
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
memory: 512Mi
securityContext:
capabilities:
drop:
- MKNOD
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/mysql/data
name: mysql-data
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-hlqfx
readOnly: true
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: default-dockercfg-jzwc5
nodeName: master
nodeSelector:
node-role.kubernetes.io/compute: "true"
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
seLinuxOptions:
level: s0:c16,c10
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
key: node.kubernetes.io/memory-pressure
operator: Exists
volumes:
- name: mysql-data
persistentVolumeClaim:
claimName: mysql
- name: default-token-hlqfx
secret:
defaultMode: 420
secretName: default-token-hlqfx
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2020-08-12T08:51:48Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2020-08-12T08:52:13Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: null
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2020-08-12T08:51:48Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://a2ebba5fd6d932212b8fe6df25e0cf2aab88efc5d3daa31d01054bd0ca36180a
image: docker-registry.default.svc:5000/openshift/mysql@sha256:e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764
imageID: docker-pullable://docker-registry.default.svc:5000/openshift/mysql@sha256:e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764
lastState: {}
name: mysql
ready: true
restartCount: 0
state:
running:
startedAt: "2020-08-12T08:52:03Z"
hostIP: 172.17.0.31
phase: Running
podIP: 10.128.0.28
qosClass: Burstable
startTime: "2020-08-12T08:51:48Z"
- apiVersion: v1
kind: ReplicationController
metadata:
annotations:
openshift.io/deployer-pod.completed-at: 2020-08-12 08:54:06 +0000 UTC
openshift.io/deployer-pod.created-at: 2020-08-12 08:53:07 +0000 UTC
openshift.io/deployer-pod.name: moodle-1-deploy
openshift.io/deployment-config.latest-version: "1"
openshift.io/deployment-config.name: moodle
openshift.io/deployment.phase: Complete
openshift.io/deployment.replicas: "1"
openshift.io/deployment.status-reason: config change
openshift.io/encoded-deployment-config: |
{"kind":"DeploymentConfig","apiVersion":"apps.openshift.io/v1","metadata":{"name":"moodle","namespace":"sagar","selfLink":"/apis/apps.openshift.io/v1/namespaces/sagar/deploymentconfigs/moodle","uid":"3d8a2fd9-dc79-11ea-a97e-0242ac11001f","resourceVersion":"11112","generation":2,"creationTimestamp":"2020-08-12T08:53:06Z","labels":{"app":"moodle"},"annotations":{"openshift.io/generated-by":"OpenShiftWebConsole"}},"spec":{"strategy":{"type":"Rolling","rollingParams":{"updatePeriodSeconds":1,"intervalSeconds":1,"timeoutSeconds":600,"maxUnavailable":"25%","maxSurge":"25%"},"resources":{},"activeDeadlineSeconds":21600},"triggers":[{"type":"ConfigChange"},{"type":"ImageChange","imageChangeParams":{"automatic":true,"containerNames":["moodle"],"from":{"kind":"ImageStreamTag","namespace":"sagar","name":"moodle:3.3.2"},"lastTriggeredImage":"docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590"}}],"replicas":1,"test":false,"selector":{"app":"moodle","deploymentconfig":"moodle"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"moodle","deploymentconfig":"moodle"},"annotations":{"openshift.io/generated-by":"OpenShiftWebConsole"}},"spec":{"volumes":[{"name":"moodle-1","emptyDir":{}}],"containers":[{"name":"moodle","image":"docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590","ports":[{"containerPort":8080,"protocol":"TCP"}],"resources":{},"volumeMounts":[{"name":"moodle-1","mountPath":"/opt/app-root/moodledata"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{},"schedulerName":"default-scheduler"}}},"status":{"latestVersion":1,"observedGeneration":1,"replicas":0,"updatedReplicas":0,"availableReplicas":0,"unavailableReplicas":0,"details":{"message":"config change","causes":[{"type":"ConfigChange"}]},"conditions":[{"type":"Available","status":"False","lastUpdateTime":"2020-08-12T08:53:07Z","lastTransitionTime":"2020-08-12T08:53:07Z","message":"Deployment config does not have minimum availability."}]}}
creationTimestamp: "2020-08-12T08:53:07Z"
generation: 2
labels:
app: moodle
openshift.io/deployment-config.name: moodle
name: moodle-1
namespace: sagar
ownerReferences:
- apiVersion: apps.openshift.io/v1
blockOwnerDeletion: true
controller: true
kind: DeploymentConfig
name: moodle
uid: 3d8a2fd9-dc79-11ea-a97e-0242ac11001f
resourceVersion: "11255"
selfLink: /api/v1/namespaces/sagar/replicationcontrollers/moodle-1
uid: 3e04b319-dc79-11ea-a97e-0242ac11001f
spec:
replicas: 1
selector:
app: moodle
deployment: moodle-1
deploymentconfig: moodle
template:
metadata:
annotations:
openshift.io/deployment-config.latest-version: "1"
openshift.io/deployment-config.name: moodle
openshift.io/deployment.name: moodle-1
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
labels:
app: moodle
deployment: moodle-1
deploymentconfig: moodle
spec:
containers:
- image: docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590
imagePullPolicy: IfNotPresent
name: moodle
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/app-root/moodledata
name: moodle-1
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: moodle-1
status:
availableReplicas: 1
fullyLabeledReplicas: 1
observedGeneration: 2
readyReplicas: 1
replicas: 1
- apiVersion: v1
kind: ReplicationController
metadata:
annotations:
openshift.io/deployer-pod.completed-at: 2020-08-12 08:52:13 +0000 UTC
openshift.io/deployer-pod.created-at: 2020-08-12 08:51:44 +0000 UTC
openshift.io/deployer-pod.name: mysql-1-deploy
openshift.io/deployment-config.latest-version: "1"
openshift.io/deployment-config.name: mysql
openshift.io/deployment.phase: Complete
openshift.io/deployment.replicas: "1"
openshift.io/deployment.status-reason: config change
openshift.io/encoded-deployment-config: |
{"kind":"DeploymentConfig","apiVersion":"apps.openshift.io/v1","metadata":{"name":"mysql","namespace":"sagar","selfLink":"/apis/apps.openshift.io/v1/namespaces/sagar/deploymentconfigs/mysql","uid":"0c8b7c3c-dc79-11ea-a97e-0242ac11001f","resourceVersion":"10903","generation":2,"creationTimestamp":"2020-08-12T08:51:44Z","labels":{"template":"mysql-persistent-template","template.openshift.io/template-instance-owner":"0c8253bd-dc79-11ea-a97e-0242ac11001f"},"annotations":{"template.alpha.openshift.io/wait-for-ready":"true"}},"spec":{"strategy":{"type":"Recreate","recreateParams":{"timeoutSeconds":600},"resources":{},"activeDeadlineSeconds":21600},"triggers":[{"type":"ImageChange","imageChangeParams":{"automatic":true,"containerNames":["mysql"],"from":{"kind":"ImageStreamTag","namespace":"openshift","name":"mysql:5.7"},"lastTriggeredImage":"docker-registry.default.svc:5000/openshift/mysql@sha256:e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764"}},{"type":"ConfigChange"}],"replicas":1,"revisionHistoryLimit":10,"test":false,"selector":{"name":"mysql"},"template":{"metadata":{"creationTimestamp":null,"labels":{"name":"mysql"}},"spec":{"volumes":[{"name":"mysql-data","persistentVolumeClaim":{"claimName":"mysql"}}],"containers":[{"name":"mysql","image":"docker-registry.default.svc:5000/openshift/mysql@sha256:e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","valueFrom":{"secretKeyRef":{"name":"mysql","key":"database-user"}}},{"name":"MYSQL_PASSWORD","valueFrom":{"secretKeyRef":{"name":"mysql","key":"database-password"}}},{"name":"MYSQL_ROOT_PASSWORD","valueFrom":{"secretKeyRef":{"name":"mysql","key":"database-root-password"}}},{"name":"MYSQL_DATABASE","valueFrom":{"secretKeyRef":{"name":"mysql","key":"database-name"}}}],"resources":{"limits":{"memory":"512Mi"}},"volumeMounts":[{"name":"mysql-data","mountPath":"/var/lib/mysql/data"}],"livenessProbe":{"tcpSocket":{"port":3306},"initialDelaySeconds":30,"timeoutSeconds":1,"periodSeconds":10,"successThreshold":1,"failureThreshold":3},"readinessProbe":{"exec":{"command":["/bin/sh","-i","-c","MYSQL_PWD=\"$MYSQL_PASSWORD\" mysql -h 127.0.0.1 -u $MYSQL_USER -D $MYSQL_DATABASE -e 'SELECT 1'"]},"initialDelaySeconds":5,"timeoutSeconds":1,"periodSeconds":10,"successThreshold":1,"failureThreshold":3},"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{},"schedulerName":"default-scheduler"}}},"status":{"latestVersion":1,"observedGeneration":0,"replicas":0,"updatedReplicas":0,"availableReplicas":0,"unavailableReplicas":0,"details":{"message":"config change","causes":[{"type":"ConfigChange"}]}}}
creationTimestamp: "2020-08-12T08:51:44Z"
generation: 2
labels:
openshift.io/deployment-config.name: mysql
template: mysql-persistent-template
template.openshift.io/template-instance-owner: 0c8253bd-dc79-11ea-a97e-0242ac11001f
name: mysql-1
namespace: sagar
ownerReferences:
- apiVersion: apps.openshift.io/v1
blockOwnerDeletion: true
controller: true
kind: DeploymentConfig
name: mysql
uid: 0c8b7c3c-dc79-11ea-a97e-0242ac11001f
resourceVersion: "10994"
selfLink: /api/v1/namespaces/sagar/replicationcontrollers/mysql-1
uid: 0c964b5a-dc79-11ea-a97e-0242ac11001f
spec:
replicas: 1
selector:
deployment: mysql-1
deploymentconfig: mysql
name: mysql
template:
metadata:
annotations:
openshift.io/deployment-config.latest-version: "1"
openshift.io/deployment-config.name: mysql
openshift.io/deployment.name: mysql-1
creationTimestamp: null
labels:
deployment: mysql-1
deploymentconfig: mysql
name: mysql
spec:
containers:
- env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: database-user
name: mysql
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: database-password
name: mysql
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: database-root-password
name: mysql
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
key: database-name
name: mysql
image: docker-registry.default.svc:5000/openshift/mysql@sha256:e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 3306
timeoutSeconds: 1
name: mysql
ports:
- containerPort: 3306
protocol: TCP
readinessProbe:
exec:
command:
- /bin/sh
- -i
- -c
- MYSQL_PWD="$MYSQL_PASSWORD" mysql -h 127.0.0.1 -u $MYSQL_USER -D $MYSQL_DATABASE
-e 'SELECT 1'
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/mysql/data
name: mysql-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: mysql-data
persistentVolumeClaim:
claimName: mysql
status:
availableReplicas: 1
fullyLabeledReplicas: 1
observedGeneration: 2
readyReplicas: 1
replicas: 1
- apiVersion: v1
kind: Service
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: "2020-08-12T08:53:06Z"
labels:
app: moodle
name: moodle
namespace: sagar
resourceVersion: "11105"
selfLink: /api/v1/namespaces/sagar/services/moodle
uid: 3d8a94cb-dc79-11ea-a97e-0242ac11001f
spec:
clusterIP: 172.30.124.182
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
deploymentconfig: moodle
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
template.openshift.io/expose-uri: mysql://{.spec.clusterIP}:{.spec.ports[?(.name=="mysql")].port}
creationTimestamp: "2020-08-12T08:51:44Z"
labels:
template: mysql-persistent-template
template.openshift.io/template-instance-owner: 0c8253bd-dc79-11ea-a97e-0242ac11001f
name: mysql
namespace: sagar
resourceVersion: "10893"
selfLink: /api/v1/namespaces/sagar/services/mysql
uid: 0c89581d-dc79-11ea-a97e-0242ac11001f
spec:
clusterIP: 172.30.107.196
ports:
- name: mysql
port: 3306
protocol: TCP
targetPort: 3306
selector:
name: mysql
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: "2020-08-12T08:53:06Z"
generation: 2
labels:
app: moodle
name: moodle
namespace: sagar
resourceVersion: "11256"
selfLink: /apis/apps.openshift.io/v1/namespaces/sagar/deploymentconfigs/moodle
uid: 3d8a2fd9-dc79-11ea-a97e-0242ac11001f
spec:
replicas: 1
selector:
app: moodle
deploymentconfig: moodle
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
labels:
app: moodle
deploymentconfig: moodle
spec:
containers:
- image: docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590
imagePullPolicy: IfNotPresent
name: moodle
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/app-root/moodledata
name: moodle-1
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: moodle-1
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- moodle
from:
kind: ImageStreamTag
name: moodle:3.3.2
namespace: sagar
lastTriggeredImage: docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590
type: ImageChange
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2020-08-12T08:54:06Z"
lastUpdateTime: "2020-08-12T08:54:06Z"
message: Deployment config has minimum availability.
status: "True"
type: Available
- lastTransitionTime: "2020-08-12T08:54:07Z"
lastUpdateTime: "2020-08-12T08:54:07Z"
message: replication controller "moodle-1" successfully rolled out
reason: NewReplicationControllerAvailable
status: "True"
type: Progressing
details:
causes:
- type: ConfigChange
message: config change
latestVersion: 1
observedGeneration: 2
readyReplicas: 1
replicas: 1
unavailableReplicas: 0
updatedReplicas: 1
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
annotations:
template.alpha.openshift.io/wait-for-ready: "true"
creationTimestamp: "2020-08-12T08:51:44Z"
generation: 2
labels:
template: mysql-persistent-template
template.openshift.io/template-instance-owner: 0c8253bd-dc79-11ea-a97e-0242ac11001f
name: mysql
namespace: sagar
resourceVersion: "10996"
selfLink: /apis/apps.openshift.io/v1/namespaces/sagar/deploymentconfigs/mysql
uid: 0c8b7c3c-dc79-11ea-a97e-0242ac11001f
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
name: mysql
strategy:
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
resources: {}
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
name: mysql
spec:
containers:
- env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: database-user
name: mysql
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: database-password
name: mysql
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: database-root-password
name: mysql
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
key: database-name
name: mysql
image: docker-registry.default.svc:5000/openshift/mysql@sha256:e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 3306
timeoutSeconds: 1
name: mysql
ports:
- containerPort: 3306
protocol: TCP
readinessProbe:
exec:
command:
- /bin/sh
- -i
- -c
- MYSQL_PWD="$MYSQL_PASSWORD" mysql -h 127.0.0.1 -u $MYSQL_USER -D $MYSQL_DATABASE
-e 'SELECT 1'
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/mysql/data
name: mysql-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: mysql-data
persistentVolumeClaim:
claimName: mysql
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- mysql
from:
kind: ImageStreamTag
name: mysql:5.7
namespace: openshift
lastTriggeredImage: docker-registry.default.svc:5000/openshift/mysql@sha256:e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764
type: ImageChange
- type: ConfigChange
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2020-08-12T08:52:13Z"
lastUpdateTime: "2020-08-12T08:52:13Z"
message: Deployment config has minimum availability.
status: "True"
type: Available
- lastTransitionTime: "2020-08-12T08:51:48Z"
lastUpdateTime: "2020-08-12T08:52:14Z"
message: replication controller "mysql-1" successfully rolled out
reason: NewReplicationControllerAvailable
status: "True"
type: Progressing
details:
causes:
- type: ConfigChange
message: config change
latestVersion: 1
observedGeneration: 2
readyReplicas: 1
replicas: 1
unavailableReplicas: 0
updatedReplicas: 1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
annotations:
openshift.io/image.dockerRepositoryCheck: "2020-08-12T08:53:07Z"
creationTimestamp: "2020-08-12T08:53:06Z"
generation: 2
labels:
app: moodle
name: moodle
namespace: sagar
resourceVersion: "11110"
selfLink: /apis/image.openshift.io/v1/namespaces/sagar/imagestreams/moodle
uid: 3d862d17-dc79-11ea-a97e-0242ac11001f
spec:
lookupPolicy:
local: false
tags:
- annotations:
openshift.io/generated-by: OpenShiftWebConsole
openshift.io/imported-from: docker.io/michaellang/moodle:3.3.2
from:
kind: DockerImage
name: docker.io/michaellang/moodle:3.3.2
generation: 2
importPolicy: {}
name: 3.3.2
referencePolicy:
type: Source
status:
dockerImageRepository: docker-registry.default.svc:5000/sagar/moodle
tags:
- items:
- created: "2020-08-12T08:53:07Z"
dockerImageReference: docker.io/michaellang/moodle@sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590
generation: 2
image: sha256:2fbc08b3fae50f4951f8f88e31d9d358ebf3a4b9f93b4f1016319025f186b590
tag: 3.3.2
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
openshift.io/host.generated: "true"
creationTimestamp: "2020-08-12T08:56:31Z"
labels:
app: moodle
name: moodle
namespace: sagar
resourceVersion: "11546"
selfLink: /apis/route.openshift.io/v1/namespaces/sagar/routes/moodle
uid: b73a7251-dc79-11ea-a97e-0242ac11001f
spec:
host: moodle-sagar.2886795295-80-cykoria05.environments.katacoda.com
port:
targetPort: 8080-tcp
to:
kind: Service
name: moodle
weight: 100
wildcardPolicy: None
status:
ingress:
- conditions:
- lastTransitionTime: "2020-08-12T08:56:31Z"
status: "True"
type: Admitted
host: moodle-sagar.2886795295-80-cykoria05.environments.katacoda.com
routerName: router
wildcardPolicy: None
kind: List
metadata:
resourceVersion: ""
selfLink: ""