#kubernetes (2023-06)

kubernetes

Archive: https://archive.sweetops.com/kubernetes/

2023-06-11

venkata.mutyala avatar
venkata.mutyala

When using hostNetwork is there a recommended port range to use? I was thinking of using ports 49152 to 65535 (ChatGPT recommended this).

2023-06-12

Jurgen avatar

So, ideas… our clusters like my clusters have dependencies, things that it requires to run.. Here is a short list:

VPC CNI CoreDNS EBS/EFS CSI ingress nginx AWSLoadBalancerController ClusterAutoScaler Deprecated APIversions Kube Proxy

All of these ‘things/dependencies’ require various versions of k8s, but that I mean

Kube-Proxy v1 needs k8s v1.5 (randomly made up example)

is anyone aware of an API/endpoint/something that maintains a matrix of all of this that can be queried?

Hao Wang avatar
Hao Wang

Can the cluster be upgraded?

1
Jurgen avatar

thats what we are trying to determine.

Hao Wang avatar
Hao Wang

First things you may need to have more insights into what the applications need from k8s, so you can create a newest version or -1 version of k8s testing environment to play with

Hao Wang avatar
Hao Wang

CoreDNS and Kube Proxy can be replaced in the stack, Nginx ingress can be replaced by AWSLoadBalancerController

Hao Wang avatar
Hao Wang

etc.

Hao Wang avatar
Hao Wang

Deprecated APIversions is related to the applications

venkata.mutyala avatar
venkata.mutyala

Forgot to mention this the other day but Pluto and a tool called Ent might be handy for your use case.

https://github.com/doitintl/kube-no-trouble

https://github.com/FairwindsOps/pluto

In theory you should be able to run kube no trouble and see if you are using any deprecated APIs

doitintl/kube-no-trouble
FairwindsOps/pluto
Hao Wang avatar
Hao Wang

nice projects, will take a look, thanks

1
Justin avatar

I use to Kubent and Pluto before my EKS upgrades but similar to @Jurgen I’m looking for a tool that can take inventory of which version of a particular app running e.g. ingress nginx running version 1.2.1 and therefore incompatible with 1.24. I’ve started scripting this out but it seems messy and inconsistent

2

2023-06-13

2023-06-14

2023-06-21

gajanandsingh1612 avatar
gajanandsingh1612

Hi @everyone, let’s assume I have an app that doesn’t have any health endpoint or port, now how can I decide whether the app is ready or not…can health probes use pod logs to determine the status?

Hao Wang avatar
Hao Wang

yeah, so you write a simple Flask service only for health check endpoint and in the service it can check logs

Hao Wang avatar
Hao Wang

then in k8s yaml, refer to the endpoint for health checks

bradym avatar

Use an exec type - any command can be used as a probe.

There’s an example in the docs here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command

Configure Liveness, Readiness and Startup Probes

This page shows how to configure liveness, readiness and startup probes for containers. The kubelet uses liveness probes to know when to restart a container. For example, liveness probes could catch a deadlock, where an application is running, but unable to make progress. Restarting a container in such a state can help to make the application more available despite bugs. A common pattern for liveness probes is to use the same low-cost HTTP endpoint as for readiness probes, but with a higher failureThreshold.

2
gajanandsingh1612 avatar
gajanandsingh1612

But then I have to read the log file and the size of the log file keeps on increasing which may give timeout or fail in future.

bradym avatar

I’m not sure how else you were expecting to use a log file…

You could have your app touch a file every x seconds and the command could check the last modified time. If it’s too old that means your app has failed, so you exit with a non-zero exit status. This would cause the probe to fail.

2023-06-22

sheldonh avatar
sheldonh

Anyone used argoCD and also the Pulumi operator? Would love to read a little on your experience. ArgoCD seems more common but would love to know if anyone is benefiting from Pulumi in k8s in a way that argoCD doesn’t solve

2

2023-06-26

Matt Gowie avatar
Matt Gowie

Posted some info on why we’ve decided to skip on Crossplane to the blog today: https://masterpoint.io/updates/passing-on-crossplane/. Would love to hear folks thoughts!

Crossplane: Why it Didn't Work for Us | Masterpoint Consultingattachment image

We investigated Crossplane at a deep level and found it wasn’t for us. Read on to learn about our investigation and the issues we found.

1
3
Hao Wang avatar
Hao Wang

Great post, thanks for the details!

Crossplane: Why it Didn't Work for Us | Masterpoint Consultingattachment image

We investigated Crossplane at a deep level and found it wasn’t for us. Read on to learn about our investigation and the issues we found.

1
1
Andrew Nazarov avatar
Andrew Nazarov

Thanx for sharing!

2023-06-29

Xu Pengfei avatar
Xu Pengfei
Talking about the Sidecar Design Pattern in K8s — Part 2attachment image

Talking about the Sidecar Design Pattern in K8s — Part 2

1
1
    keyboard_arrow_up