Skip to content

Instantly share code, notes, and snippets.

@ClayShentrup
Created January 11, 2019 23:29
Show Gist options
  • Save ClayShentrup/eb6d45771fb8be377e34ee078434c25c to your computer and use it in GitHub Desktop.
Save ClayShentrup/eb6d45771fb8be377e34ee078434c25c to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: adama
spec:
selector:
matchLabels:
app: adama
replicas: 1
template:
metadata:
labels:
app: adama
spec:
containers:
- name: adama
image: image_url_foo
ports:
- containerPort: 3000
imagePullSecrets:
- name: regcred
---
kind: PodPreset
metadata:
name: containerized-db
spec:
selector:
matchLabels:
app: adama
env:
- name: ADAMA_DATABASE_SERVICE_ADDRESS
value: dbi:pgsql:host=psql;dbname=adama_docker_test;user=adama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment