-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmongodb.yaml
More file actions
126 lines (126 loc) · 3.12 KB
/
mongodb.yaml
File metadata and controls
126 lines (126 loc) · 3.12 KB
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
apiVersion: v1
kind: Secret
metadata:
name: mongodb-login
type: Opaque
data:
password: MWYyZDFlMmU2N2Rm
---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: '2018-05-14T17:55:59Z'
generation: 2
labels:
app: mongodb-36-rhel7
name: mongodb-36-rhel7
resourceVersion: '1620163'
selfLink: >-
/apis/apps.openshift.io/v1/namespaces/samplenode/deploymentconfigs/mongodb-36-rhel7
uid: 0ee31bdf-57a0-11e8-928d-001a4a1602c4
spec:
replicas: 1
selector:
app: mongodb-36-rhel7
deploymentconfig: mongodb-36-rhel7
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: mongodb-36-rhel7
deploymentconfig: mongodb-36-rhel7
spec:
containers:
- env:
- name: MONGODB_ADMIN_PASSWORD
value: admin_pass
image: >-
registry.access.redhat.com/rhscl/mongodb-36-rhel7
imagePullPolicy: Always
name: mongodb-36-rhel7
ports:
- containerPort: 27017
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/mongodb/data
name: mongodb-36-rhel7-1
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: mongodb-36-rhel7-1
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- mongodb-36-rhel7
from:
kind: ImageStreamTag
name: 'mongodb-36-rhel7:latest'
type: ImageChange
status:
availableReplicas: 0
conditions:
- lastTransitionTime: '2018-05-14T17:55:59Z'
lastUpdateTime: '2018-05-14T17:55:59Z'
message: Deployment config does not have minimum availability.
status: 'False'
type: Available
- lastTransitionTime: '2018-05-14T17:56:01Z'
lastUpdateTime: '2018-05-14T17:56:01Z'
message: >-
replication controller "mongodb-36-rhel7-1" is waiting for pod
"mongodb-36-rhel7-1-deploy" to run
status: Unknown
type: Progressing
details:
causes:
- type: ConfigChange
message: config change
latestVersion: 1
observedGeneration: 2
replicas: 1
unavailableReplicas: 1
updatedReplicas: 1
---
apiVersion: v1
kind: Service
metadata:
labels:
app: mongodb
name: mongodb
spec:
externalTrafficPolicy: Cluster
ports:
- name: mongo
port: 27017
protocol: TCP
targetPort: 27017
selector:
deploymentconfig: mongodb-36-rhel7
sessionAffinity: None
type: NodePort
status:
loadBalancer: {}