Skip to content

Instantly share code, notes, and snippets.

@linki
Created September 11, 2016 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linki/b4d1b86cc23bfc2422728c60f48948ed to your computer and use it in GitHub Desktop.
Save linki/b4d1b86cc23bfc2422728c60f48948ed to your computer and use it in GitHub Desktop.
example manifest for can
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: postgres
spec:
replicas: 1
template:
metadata:
labels:
app: postgres
spec:
containers:
- name: postgres
image: postgres:9.5.3
env:
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_PASSWORD
value: postgres
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
ports:
- containerPort: 5432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment