Skip to content
Snippets Groups Projects
Commit 5110d3f9 authored by Jan Schnaidt's avatar Jan Schnaidt
Browse files

Diverse

parent 99fb115a
No related branches found
No related tags found
No related merge requests found
......@@ -36,11 +36,12 @@ apiVersion: v1
kind: Service
metadata:
name: backend-service
namespace: todo
spec:
selector:
app: backend
ports:
- protocol: TCP
port: 80
port: 9876
targetPort: 9876
type: ClusterIP
......@@ -18,7 +18,7 @@ spec:
image: frontend
imagePullPolicy: IfNotPresent # ohne diesen wert versucht minikube wieso auch immer images von dockerhub zu ziehen
ports:
- containerPort: 80
- containerPort: 32222
---
apiVersion: v1
kind: Service
......@@ -29,6 +29,7 @@ spec:
app: frontend
ports:
- protocol: TCP
port: 80
targetPort: 80
port: 32222
targetPort: 32222
nodePort: 32222
type: LoadBalancer
apiVersion: v1
kind: PersistentVolume
metadata:
name: mongo-pv
name: mongodb-pv
namespace: todo
spec:
capacity:
......
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mongo-pvc
name: mongodb-pvc
namespace: todo
spec:
accessModes:
......
apiVersion: v1
data:
password: dG9kb2RiYWRtaW5wYXNzd29yZAo=
username: dG9kb2RidXNlcgo=
kind: Secret
metadata:
creationTimestamp: null
name: mongo-creds
\ No newline at end of file
......@@ -27,9 +27,9 @@ spec:
value: todo
volumeMounts:
- mountPath: /data/db
name: mongo-data
name: mongodb-pv
volumes:
- name: mongo-data
- name: mongodb-pv
persistentVolumeClaim:
claimName: mongo-pvc
......@@ -40,7 +40,8 @@ metadata:
name: mongodb-service
spec:
ports:
- port: 27017
- name: mongodb
port: 27017
targetPort: 27017
selector:
app: mongodb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment