#kubernetes - September 2021

September 2021
Carmelo
Carmeloabout 5 years ago
Hi guys, I am looking for a "user friendly" solution to manage multiple clusters for a customer. In the end I'm between Rancher and Kubesphere, has anyone here used any of these solutions in production?. They are using EKS (AWS). Thanks
Adnan
Adnanabout 5 years ago
Hi People,
anyone ever had this issue with the AWS ALB Ingress controller:
failed to build LoadBalancer configuration due to failed to resolve 2 qualified subnet with at least 8 free IP Addresses for ALB. Subnets must contains these tags: '<http://kubernetes.io/cluster/my-cluster-name|kubernetes.io/cluster/my-cluster-name>': ['shared' or 'owned'] and '<http://kubernetes.io/role/elb|kubernetes.io/role/elb>': ['' or '1']. See <https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/controller/config/#subnet-auto-discovery> for more details.

So there three subnets with the appropriate tagging and many ips
I could not yet find the reason why it is complaining about the subnets
sheldonh
sheldonhabout 5 years ago
:helm: New to k8 and helm.

Need to define multiple pieces of my internal app, some based on public helm charts, others just internal containers.

I started with kompose and converted Docker compose files to give me a headstart on what might be contained in k8 yaml schema, but not clear if I need to create my own helm charts or not. I'm since I'm not going to reuse these pieces in other projects, I'm assuming I don't need helm charts.

If I draw some similarity to Terraform.... would a helm chart be like a terraform module, and the k8 schema yaml be similar to a "root module"?
If that parallel applies, then I'd only worry about helm charts when consuming a prebuilt resource or trying to reuse in different places in the company. If it's a standalone root application definition, I'm assuming I'll just do this without helm.

How far off am I? #k8newbie 😁
azec
azecabout 5 years ago
Reading https://github.com/cloudposse/terraform-aws-eks-node-group/blob/780163dacd9c892b64b988077a994f6675d8f56d/MIGRATION.md
to be able to jump to the module 0.25.0 version (had recent overhaul).

Seems like remote_access_enabled was removed from the module, but not documented in the migration guide to 0.25.0 …
Brad McCoy
Brad McCoyabout 5 years ago
Join us for a hands-on lab to implement Argo CD with ApplicationSets the new way of bootstrapping your cluster in Kubernetes. Friday 8:30 AEST | Thursday 3:30 https://community.cncf.io/events/details/cncf-cloud-native-dojo-presents-hands-on-lab-getting-started-with-argocd/
Adnan
Adnanabout 5 years ago
Hi People,
Wanted to ask about experiences upgrading kubernetes eks versions.
I recently did an upgrade from 1.19 to 1.20.
After the upgrade some of my workloads are experiencing weird high cpu spikes.
But correlation does not equal causation so I wanted to ask if anyone here experienced something similar.
Mithra
Mithraabout 5 years ago
Hello all,
Can any one help with the Azure Kubernetes service please what if the namespace is accidentally deleted Is there any recovery process (Disaster Recovery). Any inputs from the team please. ~ Thanks much appreciated.
zadkiel
zadkielabout 5 years ago
Hey there!
I'm trying to go further with my multi tenant cluster and want to show only their namespaces to my teams. I did not find a way to reduce the number of shown namespaces when I do a k get ns. Any idea how I can get this done?
Shreyank Sharma
Shreyank Sharmaabout 5 years ago
Hello all,

We are using Kubernetes in AWS,
deployed using kops.
We are using Nginx as our ingress controller, it was working fine for almost 2 years. but recently we started getting 502 bad gateway issues in multiple pods randomly.

ingress log shows 502
[23/Sep/2021:10:53:43 +0000] "GET /service HTTP/2.0" 502 559 "<https://mydomain/>" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36" 4691 0.040 [default-myservice-80] 100.96.13.157:80, 100.96.13.157:80, 100.96.13.157:80 0, 0, 0 0.000, 0.000, 0.000 502, 502, 502 258a09eaaddef85cae2a0c2f706ce06b
..
[error] 1050#1050: *1352377 connect() failed (111: Connection refused) while connecting to upstream, client: CLIENT_IP_HERE , server: <http://my.domain.com|my.domain.com> , request: "GET /index.html HTTP/2.0", upstream: "<http://POD_IP:8080/index.html>", host: "<http://my.domain.com|my.domain.com>", referrer: "<https://my.domain/index.html>"

We tried connecting to pod-ip which gave 502 from ingress pod
www-data@nginx-ingress-controller-664f488479-7cp57:/etc/nginx$ curl 100.96.13.157
curl: (7) Failed to connect to 100.96.13.157 port 80: Connection refused

it showed connection refuced

We monitored tcpdump traffic from the node where the pod gave 502
root@node-ip:/home/admin# tcpdump -i cbr0 dst 100.96.13.157
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on cbr0, link-type EN10MB (Ethernet), capture size 262144 bytes
17:39:16.779950 ARP, Request who-has 100.96.13.157 tell 100.96.13.22, length 28
17:39:16.780207 IP 100.96.13.22.57610 > 100.96.13.157.http: Flags [S], seq 2263585697, win 26883, options [mss 8961,sackOK,TS val 1581767928 ecr 0,nop,wscale 9], length 0
17:39:21.932839 ARP, Reply 100.96.13.22 is-at 0a:58:64:60:0d:16 (oui Unknown), length 28


root@node-ip:/home/admin# ping 100.96.13.157
PING 100.96.13.157 (100.96.13.157) 56(84) bytes of data.
64 bytes from 100.96.13.157: icmp_seq=1 ttl=64 time=0.309 ms
64 bytes from 100.96.13.157: icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from 100.96.13.157: icmp_seq=3 ttl=64 time=0.044 ms

it looks like pods can reach each other, and ping is working,

root@node-ip:/home/admin# tcpdump -i cbr0 src 100.96.13.157
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on cbr0, link-type EN10MB (Ethernet), capture size 262144 bytes
17:39:16.780076 ARP, Reply 100.96.13.157 is-at 0a:58:64:60:0d:9d (oui Unknown), length 28
17:39:16.780175 ARP, Reply 100.96.13.157 is-at 0a:58:64:60:0d:9d (oui Unknown), length 28
17:39:16.780238 IP 100.96.13.157.http > 100.96.13.22.57610: Flags [R.], seq 0, ack 2263585698, win 0, length 0
17:39:21.932808 ARP, Request who-has 100.96.13.22 tell 100.96.13.157, length 28

Here ingress is sending request but it's been reset,(flag [R.] = RST-ACK in tcp dump) and http request is lost.

we don't know where this connection is getting lost, we checked our service and pod labels, everything is configured properly. also most of the time my.domain.com is accessible and ISSUE LOOKS INTERMITTENT, is any other place we need to check for logs....?or has anyone experienced the same issue?

Thanks in advance
Steffan
Steffanabout 5 years ago
Wondering if anyone know how i can let pods spinned up by jenkins on eks to assume a role on the pod level so that i can give that role a cross account trust to another aws account B (where that role will have access to ECR for account B to pull its images)
Steffan
Steffanabout 5 years ago(edited)
i dont want to use service accounts because my setup is such that one jenkins serves multiple projects and creating a service account on node level is not something i want
azec
azecabout 5 years ago
Hello friends!
azec
azecabout 5 years ago
I am chasing down how to configure clusterDNS: <VALUE> setting for the Kubernetes node-group that is deployed using https://github.com/cloudposse/terraform-aws-eks-node-group/

Particularly this blob: https://github.com/weaveworks/eksctl/pull/550#issuecomment-464623865
azec
azecabout 5 years ago
Anyone who could know this ?
azec
azecabout 5 years ago
Hi there!
We are using cloudposse module for node-groups for Kubernetes EKS 1.21
We started noticing that few hours after provisioning node-groups as well as corresponding worker IAM roles, these three IAM managed AWS policies start disappearing from the IAM roles:
AmazonEKSWorkerNodePolicy
AmazonEC2ContainerRegistryReadOnly
AmazonEKS_CNI_Policy

azec
azecabout 5 years ago
Wonder if anyone has noticed similar behavior?
azec
azecabout 5 years ago
Specifically we are using 0.25.0 version of this module: https://github.com/cloudposse/terraform-aws-eks-node-group/tree/0.25.0
azec
azecabout 5 years ago
We are using create_before_destroyed flag set to true …
azec
azecabout 5 years ago
It turned out to be our ignore_tags configuration of AWS provider that was triggering some unexpected effects on the node-group resources including IAM Roles for worker nodes.
Santiago Campuzano
Santiago Campuzanoabout 5 years ago
Morning everyone ! this is the 2nd part of my K8S blog post: "Implementing Kubernetes: The Hidden Part of the Iceberg". I hope you enjoy it!.
https://medium.com/gumgum-tech/implementing-kubernetes-the-hidden-part-of-the-iceberg-part-2-d76d21759de0