Skip to content

Instantly share code, notes, and snippets.

@dbones
Created May 8, 2020 16:28
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 dbones/bceda8e0ffab5a6f48172476545c8234 to your computer and use it in GitHub Desktop.
Save dbones/bceda8e0ffab5a6f48172476545c8234 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: document
spec:
selector:
matchLabels:
app: document
template:
metadata:
namespace: data
labels:
app: document
spec:
containers:
- name: document
image: postgres:alpine
resources:
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: POSTGRES_DB
value: TestDb
- name: POSTGRES_PASSWORD
value: ABC123!!
- name: POSTGRES_USER
value: application
ports:
- containerPort: 5432
---
apiVersion: v1
kind: Service
metadata:
name: document
namespace: data
spec:
selector:
app: document
ports:
- port: 5432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment