Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: django
- labels:
- app: django
- spec:
- replicas: 3
- selector:
- matchLabels:
- app: django
- template:
- metadata:
- labels:
- app: django
- spec:
- containers:
- - name: django
- image: python:3.6
- ports:
- - containerPort: 8000
- env:
- - name: DATABASE_HOST
- value: postgres://postgres:1234@localhost:5432/budget_db
- - name: DATABASE_PORT
- value: "5432"
- - name: DATABASE_USER
- valueFrom:
- secretKeyRef:
- name: postgres-credentials
- key: username
- - name: DATABASE_PASSWORD
- valueFrom:
- secretKeyRef:
- name: postgres-credentials
- key: password
- ---
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: django-ingress
- spec:
- rules:
- - host: "budgetsmart.stk8s.66bit.ru"
- http:
- paths:
- - pathType: Prefix
- path: /
- backend:
- service:
- name: django
- port:
- number: 8000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement