Tags | kubernetes helm |
Hard Prerequisites | |
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content. | |
|
|
Soft Prerequisites |
|
Let’s finish up by deploying our backend. First, update the python
key under the helm/buttons/values.yaml
file with the following content:
python:
image:
repository: harbor.<your-domain>/application/python
tag: v2
name: nginx
name: python
envs:
- name: DB_HOST
value: "postgresql.default.svc.cluster.local"
- name: DB_NAME
value: dbname
- name: DB_USER
value: youruser
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: postgresql
key: password
service:
type: ClusterIP
port: 5000
Create the helm/buttons/templates/python-deployment.yaml
file by yourself. A few things to take into consideration:
nginx
valuesliveness
and readiness
probes, using the /health
endpointspec.selector.matchLabels
to connect the Deployment to the ServiceCommit your changes, go to your EC2 instance and let’s upgrade our Helm installation with the new resources.
On your browser, go to https://<your-domain>
and try out the Buttons app, now deployed fully with Helm!