2016-04-09 12:58:03 +05:30
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
2015-08-18 05:57:27 +05:30
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: postgres
|
2015-09-09 03:23:53 +05:30
|
|
|
name: dex-postgres
|
2015-08-18 05:57:27 +05:30
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: postgres
|
|
|
|
spec:
|
|
|
|
containers:
|
2015-09-09 03:23:53 +05:30
|
|
|
- image: postgres
|
|
|
|
name: dex-postgres
|
2015-08-18 05:57:27 +05:30
|
|
|
ports:
|
|
|
|
- containerPort: 5432
|
|
|
|
name: postgres-port
|
2016-04-09 12:58:03 +05:30
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: postgres
|
|
|
|
name: dex-postgres
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 5432
|
|
|
|
selector:
|
|
|
|
app: postgres
|