Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: postgres
- namespace: tomsther
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: postgres-label
- template:
- metadata:
- labels:
- app: postgres-label
- spec:
- containers:
- - name: postgres
- image: postgres:10
- ports:
- - containerPort: 5432
- resources:
- requests:
- cpu: 100m
- memory: 128Mi
- env:
- - name: POSTGRES_USER
- value: mitrakov
- - name: POSTGRES_PASSWORD
- value: "12345"
- volumeMounts:
- - mountPath: /var/lib/postgresql/data
- name: postgredb
- volumes:
- - name: postgredb
- persistentVolumeClaim:
- claimName: postgres-pv-claim
Add Comment
Please, Sign In to add comment