dex/contrib/k8s/postgres.yaml

32 lines
517 B
YAML
Raw Normal View History

apiVersion: extensions/v1beta1
kind: Deployment
2015-08-18 05:57:27 +05:30
metadata:
labels:
app: postgres
name: dex-postgres
2015-08-18 05:57:27 +05:30
spec:
replicas: 1
template:
metadata:
labels:
app: postgres
spec:
containers:
- image: postgres
name: dex-postgres
2015-08-18 05:57:27 +05:30
ports:
- containerPort: 5432
name: postgres-port
---
apiVersion: v1
kind: Service
metadata:
labels:
app: postgres
name: dex-postgres
spec:
ports:
- port: 5432
selector:
app: postgres