https://github.com/liteobject/demo.kubernetes.helm
https://github.com/liteobject/demo.kubernetes.helm
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/liteobject/demo.kubernetes.helm
- Owner: LiteObject
- Created: 2022-02-05T14:05:56.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-09T03:54:23.000Z (about 4 years ago)
- Last Synced: 2024-12-29T18:23:39.965Z (about 1 year ago)
- Language: C#
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Helm Chart
## To build docker image:
$`docker build -f WeatherForecast.API/Dockerfile -t liteobject/demo-helm-chart:latest . --label "created-by=mhoque"
## To view images details:
$`docker inspect [NAME|ID]
## To push to dockerhub
$`docker push liteobject/demo-helm-chart:latest
## To run using kubernetes deployment file:
$`kubectl apply -f k8s/deployment.yaml
## To delete a deployment:
$`kubectl delete -f k8s/deployment.yaml
## To watch logs using label:
$`kubectl logs -l app=weather-forecast-webapi -f --since=10m
## To access and interact with internal Kubernetes cluster processes from localhost
$` k port-forward [pod-name] 8080:80
## Install existing applications with Helm:
- https://docs.microsoft.com/en-us/azure-stack/aks-hci/kubernetes-helm
## To add the Nginx repo to your cluster using helm
$`helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
$`helm repo update
## To install the Nginx ingress in the namespace ingress
$`helm install my-nginx-ingress ingress-nginx/ingress-nginx `
--set controller.nodeSelector."beta\.kubernetes\.io/os"=linux `
--set defaultBackend.nodeSelector."beta\.kubernetes\.io/os"=linux