-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeploymentConfig.yaml
103 lines (102 loc) · 2.61 KB
/
DeploymentConfig.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
apiVersion: v1
stringData:
MYSQL_USER: toor
MYSQL_PASSWORD: root
MYSQL_DATABASE: voteapp
kind: Secret
metadata:
name: mysql-env
---
apiVersion: v1
items:
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
app: mysql
app.kubernetes.io/component: mysql
app.kubernetes.io/instance: mysql
app.kubernetes.io/part-of: vote-application
name: mysql
spec:
replicas: 1
selector:
deploymentconfig: mysql
strategy:
resources: {}
template:
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
deploymentconfig: mysql
spec:
containers:
- resources: {}
name: mysql
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: mysql-env
key: MYSQL_USER
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-env
key: MYSQL_PASSWORD
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
name: mysql-env
key: MYSQL_DATABASE
image: image-registry.openshift-image-registry.svc:5000/openshift/mysql:8.0-el8
ports:
- containerPort: 3306
protocol: TCP
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- mysql
from:
kind: ImageStreamTag
name: mysql:8.0-el8
namespace: openshift
type: ImageChange
status:
availableReplicas: 0
latestVersion: 0
observedGeneration: 0
replicas: 0
unavailableReplicas: 0
updatedReplicas: 0
- apiVersion: v1
kind: Service
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
app: mysql
app.kubernetes.io/component: mysql
app.kubernetes.io/instance: mysql
name: mysql
spec:
ports:
- name: 3306-tcp
port: 3306
protocol: TCP
targetPort: 3306
selector:
deploymentconfig: mysql
status:
loadBalancer: {}
kind: List
metadata: {}