Skip to content
Snippets Groups Projects
Commit 10d7322d authored by Thomas  MENARD's avatar Thomas MENARD
Browse files

Update README

parent abe8c615
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,45 @@ build:
* Django Application
* Deployment
```yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: polls
labels:
app: polls
spec:
replicas: 3
template:
metadata:
labels:
app: polls
spec:
containers:
name: polls-app
image: ${CI_REGISTRY}/${CI_PROJECT_NAME}/polls:${CI_COMMIT_SHORT_SHA}
# This setting makes nodes pull the docker image every time before
# starting the pod. This is useful when debugging, but should be turned
# off in production.
imagePullPolicy: Always
env:
- name: DATABASE_USER
valueFrom:
secretKeyRef:
name: postgresql-credentials
key: username
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: postgresql-credentials
key: password
ports:
- containerPort: 8080
volumes:
- name: postgresql-credentials
secret:
secretName: postgresql
```
* Service
* Ingress Resource
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment