Skip to content

Commit

Permalink
Merge pull request #7 from johnbedeir/dev
Browse files Browse the repository at this point in the history
K8s Deployment
  • Loading branch information
JohnyDev authored Jul 27, 2022
2 parents 7cba216 + fe44cf2 commit 1feff93
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
22 changes: 22 additions & 0 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: django-app
labels:
app: django
spec:
replicas: 3
selector:
matchLabels:
app: django
template:
metadata:
labels:
app: django
spec:
containers:
- image: triple3a/django-app:latest
name: django
ports:
- containerPort: 8000
name: gunicorn
13 changes: 13 additions & 0 deletions k8s/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: django
labels:
app: django
spec:
type: NodePort
selector:
app: django
ports:
- port: 8000
targetPort: 8000

0 comments on commit 1feff93

Please sign in to comment.