Tell when Job is Complete
Since version 1.11, you can do: kubectl wait –for=condition=complete job/myjob and you can also set a timeout: kubectl wait –for=condition=complete –timeout=30s job/myjob
Since version 1.11, you can do: kubectl wait –for=condition=complete job/myjob and you can also set a timeout: kubectl wait –for=condition=complete –timeout=30s job/myjob
List the nodes and get the <node-name> you want to drain or (remove from cluster) kubectl get nodes 1) First drain the node kubectl drain <node-name> You might have to ignore daemonsets and local-data in the machine kubectl drain <node-name> –ignore-daemonsets –delete-local-data 2) Edit instance group for nodes (Only if you are using kops) kops … Read more
As both a CloudFoundry (past) and Kubernetes (present) commiter, I’m probably uniquely qualified to answer this one. PaaS-like I like to call CloudFoundry an “Application PaaS” and Kubernetes a “Container PaaS”, but the distinction is fairly subtle and fluid, given that both projects change over time to compete in the same markets. The distinction between … Read more
Once these commands: kubectl create serviceaccount –namespace kube-system tiller kubectl create clusterrolebinding tiller-cluster-rule –clusterrole=cluster-admin –serviceaccount=kube-system:tiller kubectl patch deploy –namespace kube-system tiller-deploy -p ‘{“spec”:{“template”:{“spec”:{“serviceAccount”:”tiller”}}}}’ helm init –service-account tiller –upgrade were run, the issue has been solved.
Personally I prefer this method because it relies only on kubectl, is not very verbose and we don’t get the pod/ prefix in the output: kubectl get pods –no-headers -o custom-columns=”:metadata.name”
I believe the term “kubernetes operator” was introduced by the CoreOS people here An Operator is an application-specific controller that extends the Kubernetes API to create, configure and manage instances of complex stateful applications on behalf of a Kubernetes user. It builds upon the basic Kubernetes resource and controller concepts, but also includes domain or … Read more
You can export the variable and use it while running helm install. Before that, you have to modify your chart so that the value can be set while installation. Skip this part, if you already know, how to setup template fields. As you don’t want to expose the data, so it’s better to have it … Read more
Short Answer You can list all available versions of a chart using the search repo functionality together with the –versions flag: helm search repo <reponame>/<chartname> –versions This requires that the repo was added previously and is up to date. If your repo was added some time ago, please make sure to keep the local cache … Read more
While you’re correct that in the glossary there’s indeed no entry for endpoint, it is a well defined Kubernetes network concept or abstraction. Since it’s of secondary nature, you’d usually not directly manipulate it. There’s a core resource Endpoint defined and it’s also supported on the command line: $ kubectl get endpoints NAME ENDPOINTS AGE … Read more