https://github.com/liteobject/demo.kubernetes.deployment
https://github.com/liteobject/demo.kubernetes.deployment
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/liteobject/demo.kubernetes.deployment
- Owner: LiteObject
- Created: 2021-03-13T03:26:25.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-05T03:12:16.000Z (about 4 years ago)
- Last Synced: 2025-05-21T19:14:06.155Z (11 months ago)
- Language: C#
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Demo.Kubernetes.Deployment
### To build docker image:
- $`docker build -f Demo.Kubernetes.Deployment/Dockerfile -t liteobject/demokubernetesdeployment:latest . --label "created-by=mhoque"`
### To view images details:
- $`docker inspect [NAME|ID]
### To run docker image:
- $`docker run -it --rm --name demo-kubernetes-deployment liteobject/demokubernetesdeployment:latest`
### To push to dockerhub:
- $`docker push liteobject/demokubernetesdeployment:latest`
### To run using kubernetes deployment file:
- $`kubectl apply -f k8s/deployment.yaml`
### To delete a deployment:
- $`kubectl delete -f k8s/deployment.yaml`
### To see pod's configuration:
- $`kubectl describe pod {POD_NAME} -n {NAMESPACE}`
### To watch logs using label:
- $`kubectl logs -l app=weather-forecast-webapi -f --since=10m`
### To fix "Unable to start Kestrel. Interop+Crypto+OpenSslCryptographicException: error:2006D080:BIO routines:BIO_new_file:no such file"
- Remove your existing dev certificate(s):
- $`dotnet dev-certs https --clean`
- To generate a new self-signed certificate, trust it and also export it to a password-protected .pfx file, all in a single step, otherwise it won't work properly:
- $`dotnet dev-certs https --trust -ep $env:USERPROFILE\.aspnet\https\aspnetapp.pfx -p SECRETPASSWORD`