push helm Charts and kube Components
This commit is contained in:
32
oc-mongo/mongo-express/mongo-express-deployment.yml
Normal file
32
oc-mongo/mongo-express/mongo-express-deployment.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mongo-express
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mongo-express
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mongo-express
|
||||
spec:
|
||||
containers:
|
||||
- name: mongo-express
|
||||
image: mongo-express:latest
|
||||
ports:
|
||||
- containerPort: 8081
|
||||
env:
|
||||
- name: ME_CONFIG_BASICAUTH_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mongo-secret
|
||||
key: mongo-username
|
||||
- name: ME_CONFIG_BASICAUTH_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mongo-secret
|
||||
key: mongo-password
|
||||
imagePullSecrets:
|
||||
- name: my-registry-key
|
||||
13
oc-mongo/mongo-express/mongo-express-service.yml
Normal file
13
oc-mongo/mongo-express/mongo-express-service.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# mongo-express-service.yml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mongo-express
|
||||
spec:
|
||||
selector:
|
||||
app: mongo-express
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8081
|
||||
targetPort: 8081
|
||||
type: NodePort # Optional, useful for accessing via Minikube IP and NodePort
|
||||
Reference in New Issue
Block a user