Tag Archives: kubernetes

List Kubernetes Master Nodes

You can use the command below to show all nodes that are acting as master on your cluster. This is particularly useful when dealing with kops and some versions of canal networking that (accidentally) manipulate the status of the nodes. … Continue reading

Posted in DevOps | Tagged , | Comments Off on List Kubernetes Master Nodes

Using kops and AWS Bastion Hosts Correctly

You have correctly provisioned your AWS infrastructure using AWS Bastion Quickstart or with kops and want to connect to your private instances using the bastion hosts. First some principles: Terminate your bastion host after using it (set autoscaling to 0). … Continue reading

Posted in DevOps | Tagged , , | Comments Off on Using kops and AWS Bastion Hosts Correctly

Kubernetes: How to Find Out if ABAC or RBAC is Active

If you want to find out what authorization mode your cluster is running use:

Posted in DevOps | Tagged , | Comments Off on Kubernetes: How to Find Out if ABAC or RBAC is Active

Kubernetes: kubectl run with ImagePullSecrets

If just want to quickly start a pod then you can use the following one-liner: This will limit you to public repos. There is no equivalent to using imagePullSecrets in your yaml files, so this won’t work: However you can … Continue reading

Posted in DevOps | Tagged | Comments Off on Kubernetes: kubectl run with ImagePullSecrets

Kubernetes: Using kubectl with 100s of Clusters

If you are working with many clusters, you need to configure multiple kubectl configs. You can do this using kubectl –kubeconfig= or by merging your config files. If however you want to keep access to your config files separate, you … Continue reading

Posted in DevOps | Tagged | Comments Off on Kubernetes: Using kubectl with 100s of Clusters

Kubernetes & Kops: Make Your Own Encrypted Debian AMI

Kops is the most popular solution to install Kubernetes on AWS in a highly-available way. Debian is the preferred Linux distro for kops, which is somewhat annoying if you see that CoreOS is the preferred container Linux. Moreover, the Debian … Continue reading

Posted in DevOps | Tagged , , | Comments Off on Kubernetes & Kops: Make Your Own Encrypted Debian AMI

Kubernetes: Make Pods Run on Your Master Nodes

Some pods you might want to run on your master nodes, too. This may be because they are exporting master node metrics or even to save resources: say you want many instances of a specific pod. In that case (and … Continue reading

Posted in DevOps | Tagged | Comments Off on Kubernetes: Make Pods Run on Your Master Nodes

Kubernetes: How to Make Your Node a Master

Under some circumstances Kubernetes is forgetting its master nodes (kops version < 1.8.0 and canal). If this happens, your masters will get scheduled full of pods. If this is the case the following command might help you: kubectl taint master1.compute.internal … Continue reading

Posted in DevOps | Tagged | Comments Off on Kubernetes: How to Make Your Node a Master

Kubernetes: How to Delete all Taints from a Node

kubectl patch node node1.compute.internal -p ‘{“spec”:{“taints”:[]}}’

Posted in DevOps | Tagged | Comments Off on Kubernetes: How to Delete all Taints from a Node