Ingress configuration for k8s in different namespaces

I would like to simplify the answer a bit further for those who are reletively new to Kubernetes and its ingress options in particular. There are 2 separate things that need to be present for ingress to work: Ingress Controller(essentially a separate Pod/Deployment along with a Service that can be used to utilize routing and … Read more

Expose port in minikube

I am not exactly sure what you are asking as it seems you already know about the minikube service <SERVICE_NAME> –url command which will give you a url where you can access the service. In order to open the exposed service, the minikube service <SERVICE_NAME> command can be used: $ kubectl run hello-minikube –image=gcr.io/google_containers/echoserver:1.4 –port=8080 … Read more

Helm V3 – Cannot find the official repo

The stable repository is hosted on https://kubernetes-charts.storage.googleapis.com/. So, try the following: helm repo add stable https://kubernetes-charts.storage.googleapis.com/ EDIT 2020-11-16: the above repository seems to have been deprecated. The following should now work instead: helm repo add stable https://charts.helm.sh/stable

Kubernetes Secrets vs ConfigMaps

I’m the author of both of these features. The idea is that you should: Use Secrets for things which are actually secret like API keys, credentials, etc Use ConfigMaps for not-secret configuration data In the future, there will likely be some differentiators for secrets like rotation or support for backing the secret API w/ HSMs, … Read more

How to rolling restart pods without changing deployment yaml in kubernetes?

Before kubernetes 1.15 the answer is no. But there is a workaround of patching deployment spec with a dummy annotation: kubectl patch deployment web -p \ “{\”spec\”:{\”template\”:{\”metadata\”:{\”annotations\”:{\”date\”:\”`date +’%s’`\”}}}}}” As of kubernetes 1.15 you can use: kubectl rollout restart deployment your_deployment_name CLI Improvements Created a new kubectl rollout restart command that does a rolling restart of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)