Skip to content

Instantly share code, notes, and snippets.

@GbengaElebs
Created January 27, 2021 09:18
Show Gist options
  • Save GbengaElebs/28ede99f6edb9ba5efca48795d9610f7 to your computer and use it in GitHub Desktop.
Save GbengaElebs/28ede99f6edb9ba5efca48795d9610f7 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: testapi-deployment
spec:
selector:
matchLabels:
app: testapi-pod
template:
metadata:
labels:
app: testapi-pod
spec:
containers:
- name: testapi-container
image: testapi_api
imagePullPolicy: Never
env:
- name: DBHOST
value: mysql8-service
- name: MYSQL_USER
value: newuser
- name: MYSQL_PASSWORD
value: pass@word1234
- name: MYSQL_DATABASE
value: Usersdb
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment