You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

80 lines
1.8 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
name: mongodb
namespace: unifi-server
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
deployment: mongodb
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
deployment: mongodb
spec:
containers:
- env:
- name: MONGO_INITDB_ROOT_USERNAME
value: "root"
- name: MONGO_INITDB_ROOT_PASSWORD
value: "Dsa-0213"
- name: MONGO_USER
value: "unifi"
- name: MONGO_PASS
value: "Rey-1176"
- name: MONGO_PORT
value: "27017"
- name: MONGO_DBNAME
value: "unifi"
- name: MONGO_AUTHSOURCE
value: "admin"
- name: MONGO_SSL
value: "True"
image: mongo:8.0
imagePullPolicy: IfNotPresent
name: mongodb
ports:
- containerPort: 27017
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /config
name: mongodb-volume-1
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: mongodb-volume-1
persistentVolumeClaim:
claimName: mongodb-volume-1
---
apiVersion: v1
kind: Service
metadata:
name: mongodb
namespace: unifi-server
spec:
ports:
- name: 27017-tcp
port: 27017
protocol: TCP
targetPort: 27017
selector:
deployment: mongodb
sessionAffinity: None
type: ClusterIP