docker image for python app:
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:
to get python-app service ip:
minikube service python-app-svc --url
helm search repo jenkins
# install jenkins
helm install jenkins-release jenkins/jenkins
check releases:
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
# package python-app chart
helm package python-app
# create index.yaml
helm repo index python-app