Browsed by
Tag: kubernetes

Kubernetes Isolate Crashed Pod

Kubernetes Isolate Crashed Pod

See also full blog post: Kubernetes: Isolate Crashed Pod If you are running your pod (services / containers) on a Kubernetes cluster, and the pod runs into problems, you can decide to take it out of the load, but keep the pod running for further investigations. To park or isolate a pod: Find your pod name. Find the pod selector labels in use. Update one of the selector labels. Debug. Delete the broken pod. In summary; by changing one of…

Read More Read More

Kubernetes: Isolate Crashed Pod

Kubernetes: Isolate Crashed Pod

Introduction If you are running your pod (services / containers) on a Kubernetes cluster, and the pod runs into problems, you can decide to take it out of the load, but keep the pod running for further investigations. TL;DR; See the notes section on this site for the short summary; Note: Kubernetes Isolate Crashed Pod Kubernetes Recap Lets start with a summary of the Kubernetes components which are involved, here is a small (simplified) recap of how the parts fit…

Read More Read More

Kubernetes Simple Redirect In Ingress Rule

Kubernetes Simple Redirect In Ingress Rule

Suppose you are moving some sort of tool from one Kubernetes cluster to another one, then it would be nice for your users to get a redirect from the old URL to the new one (or at least for a while). You can achieve this by modifying your OLD ingress rule YML, by adding an annotation in it: Of course leave the rest of the old ingress rule in tact, to let it being triggered on the old URL. You…

Read More Read More

Kubernetes External Service

Kubernetes External Service

To make a local service in a Kubernetes cluster, which points to an address on a remote system, you can use the following yaml as example: This probably (will test this some time later) will also work if you want to move a service from “namespace-a” to “namespace-b”, and want to keep a reference inside “namespace-a” for other pods which depend on it:

Kind == Mini Kubernetes Cluster

Kind == Mini Kubernetes Cluster

If you need to run a local (mini) Kubernetes cluster for some simple tests, you can try “Kind”. In seems to runs inside a single docker image (so you need docker on your machine). See https://kind.sigs.k8s.io/docs/user/quick-start/ on how to install it. Example installation (GoLang example): If Kind was installed, you can use a simple cluster create command: Or create it like this (from Linux command line) if you need special settings -for example needed if you want to use kubectl…

Read More Read More

Find Kubernetes Ingress Rules

Find Kubernetes Ingress Rules

Suppose you have a kubernetes cluster, which contains a large set of ingress rules, of which many are used for the same hostname (just using different context-root’s / paths). In this case it can be hard to find out which rule is used for a certain URL. To help out in this situation I have created a Linux script to make a nice overview of paths mapped to what services by which ingress rules. You still have to read through…

Read More Read More

Micro-services Architecture with Oauth2 and JWT – Part 6 Oauth2 and Web

Micro-services Architecture with Oauth2 and JWT – Part 6 Oauth2 and Web

The last number of years I have been working in the area of migrating from legacy monolith (web) applications to a (micro) service oriented architecture (in my role of Java / DevOps / Infrastructure engineer). As this is too big of a subject to put in a single blog post, I will split this in 6 parts; (1) Overview, (2) Gateway, (3) Identity Provider, (4) Oauth2/Scopes, (5) Migrating from Legacy, (6) Oauth2 and Web. Oauth2 and Web: To-Do or not…

Read More Read More

Micro-services Architecture with Oauth2 and JWT – Part 5 From Legacy Monolith to Services

Micro-services Architecture with Oauth2 and JWT – Part 5 From Legacy Monolith to Services

The last number of years I have been working in the area of migrating from legacy monolith (web) applications to a (micro) service oriented architecture (in my role of Java / DevOps / Infrastructure engineer). As this is too big of a subject to put in a single blog post, I will split this in 6 parts; (1) Overview, (2) Gateway, (3) Identity Provider, (4) Oauth2/Scopes, (5) Migrating from Legacy, (6) Oauth2 and Web. Introduction Lets start by defining the…

Read More Read More

Micro-services Architecture with Oauth2 and JWT – Part 4 – Oauth2/Scopes

Micro-services Architecture with Oauth2 and JWT – Part 4 – Oauth2/Scopes

The last number of years I have been working in the area of migrating from legacy monolith (web) applications to a (micro) service oriented architecture (in my role of Java / DevOps / Infrastructure engineer). As this is too big of a subject to put in a single blog post, I will split this in 6 parts; (1) Overview, (2) Gateway, (3) Identity Provider, (4) Oauth2/Scopes, (5) Migrating from Legacy, (6) Oauth2 and Web. Introduction Recap: In the previous articles…

Read More Read More