-
-
Save Christophosaurus/45d53b0cc2c23b0c1369683e6735831c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: auth-mongo-depl | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: auth-mongo | |
template: | |
metadata: | |
labels: | |
app: auth-mongo | |
spec: | |
containers: | |
- name: auth-mongo | |
image: mongo | |
volumes: | |
- name: mongodb-storage | |
persistentVolumeClaim: | |
claimName: mongodb-pv-claim | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: auth-mongo-srv | |
spec: | |
selector: | |
app: auth-mongo | |
ports: | |
- name: db | |
protocol: TCP | |
port: 27017 | |
targetPort: 27017 | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: mongodb-pv-claim | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment