Helm-Task

Helm Task

1. Create a helm chart for the python app

docker image for python app:

Untitled

to push the image to docker hub:

# make a new tag to the image
docker tag python-app mnaggar3396/python-app
# push it 
docker push mnaggar3396/python-app

create a new helm chart:

helm create python-app

to create a new release:

heml install python-app-release python-app/

check deployments, services and helm releases:

Untitled

to get python-app service ip:

minikube service python-app-svc --url

Untitled


2- Deploy Jenkins Chart on the cluster and login to jenkins

helm search repo jenkins

# install jenkins
helm install jenkins-release jenkins/jenkins

Untitled

check releases:

Untitled

login to jenkins:

# git admin password
kubectl exec --namespace default -it svc/jenkins-release -c jenkins -- /bin/cat /run/secrets/additional/chart-admin-password && echo

# to open jenkins
kubectl --namespace default port-forward svc/jenkins-release 8085:8080

login with username: admin and password

Untitled

Untitled


3- Bonus: package, sign, and push your chart to artifact hub

# package python-app chart
helm package python-app

# create index.yaml
helm repo index python-app

Untitled