#kubernetes - December 2019

December 2019
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago(edited)
#first ☝️ 😃
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
@Andriy Knysh (Cloud Posse) ☝️
Chris Fowles
Chris Fowlesalmost 7 years ago
i really don't like that pattern of mapping a namespace
Chris Fowles
Chris Fowlesalmost 7 years ago
surely affinities and taints would be a much better way of doing that
Adam Blackwell
Adam Blackwellalmost 7 years ago
Hey folks. I tried a few searches, but I apologize if this question is answered elsewhere. I'm about to move the POC certmanager deployment which can't perform dns001 chalenges to https://github.com/cloudposse/charts/tree/master/incubator/cert-manager but before I do I was curious if there was anyone here who is using it on EKS with a service account & aws-iam-authenticator (aka not kiam)?

I'm getting this error without using a chart and am struggling to see what I've misconfigured:
controller.go:131] cert-manager/controller/challenges "msg"="re-queuing item  due to error processing" "error"="error instantiating route53 challenge solver: unable to assume role: WebIdentityErr: unable to read file at /var/run/secrets/eks.amazonaws.com/serviceaccount/token\ncaused by: open /var/run/secrets/eks.amazonaws.com/serviceaccount/token: permission denied" "key"="edx..."

johncblandii
johncblandiialmost 7 years ago
Anyone have good structural patterns to follow for node labeling?

For instance, do you label specific nodes for general applications or are they app specific or both?
Roderik van der Veer
Roderik van der Veeralmost 7 years ago
A tip that might save you the same 6 hours of your life that I lost: It appears that a) you can overload the metrics-server pod on GKE by calling it too many times and b) helm will stops working when any api is down (fixes for 2.16 and 3.1 in progress/merged). Tips to work around it here: https://github.com/helm/helm/issues/6361
sarkis
sarkisalmost 7 years ago
so what’s this Kustomize I am hearing about? Worth looking into? :)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
@mumoshu I think uses it
mumoshu
mumoshualmost 7 years ago
i'd say it's a valid next step after you get tied of kubectl+sed
kskewes
kskewesalmost 7 years ago
Cuelang looks great, recommend watching the tgik8s episode with Joe Beda just released on the weekend.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Ryan Smith
Ryan Smithalmost 7 years ago
I don't see an #istio channel or anything, so I'll post here
Ryan Smith
Ryan Smithalmost 7 years ago
whyyyyyyyyyyyy?!?!?!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
🤦
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Wow, that sucks.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
We also saw they were investing in a new helm chart that we've been waiting for in parallel to this istioctl tool
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
@Jeremy G ☝️
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
but i guess that's just the telemetry portion which is built on helm charts
erik
erikalmost 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
though this is wierd...
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
and it's actively being developed
erik
erikalmost 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
@Rhooker @Adam Carlile heads up
Rhooker
Rhookeralmost 7 years ago
@Rhooker has joined the channel
Adam Carlile
Adam Carlilealmost 7 years ago
@Adam Carlile has joined the channel
Ryan Smith
Ryan Smithalmost 7 years ago
this just means they're carving out a niche for cloudposse to maintain working helm charts for helmfile deploys 🙌 🙌
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
haha - really hoping not to! 😛 my preference is deferring thought leadership as much as possible, especially with something as complicated as istio
Pierre Humberdroz
Pierre Humberdrozalmost 7 years ago
so if I am redeploying clusters on a bi weekly basis how does istio want me to manage that?
btai
btaialmost 7 years ago
If we set SSL termination at the cloud provider elb level. The traffic from our node to our ingress controller should be unencrypted right. hypothetically if i wanted to have it encrypted through to the Ingress controller is the best way to turn off ssl termination on the cloud provider elb?
Chris Fowles
Chris Fowlesalmost 7 years ago
you can re-encrypt traffic to the backend without needing to turn off termination at the elb
Chris Fowles
Chris Fowlesalmost 7 years ago
common pattern is to encrypt with private certificates internally and then a publicly trusted wildcard at the elb
btai
btaialmost 7 years ago
would i be able to figure out what causes my worker node reboot by looking at /var/log/syslog and /var/log/messages ? I took an AMI copy of the worker node after i cordoned+drained it and it doesn’t save the dmesg logs from the actual instance. I do have those other two logs @Erik Osterman (Cloud Posse)
btai
btaialmost 7 years ago
i can track down to the time in which i believe the kubelet starts up again in syslog but theres approx 1 minute of nothing that gets logged to syslog right before that point
Arjun Iyer
Arjun Iyeralmost 7 years ago
Thanks for the invite @Ryan Smith!
Ryan Smith
Ryan Smithalmost 7 years ago
https://www.signadot.com/ ^^^^ is Arjun's Company 🙂 🙌
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Welcome @Arjun Iyer !
erik-stephens
erik-stephensalmost 7 years ago
Looking for recommended way to get kubernetes events into our elasticsearch log cluster. eventrouter looks good but referred to upstream effort 2.5 years ago (https://github.com/heptiolabs/eventrouter/issues/26#issuecomment-318472723). Anyone happen to know what that upstream effort is?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Related but not what you are looking for: https://github.com/getsentry/sentry-kubernetes
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
We use this... happy with it
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
This is for shipping to sentry rather than ES
erik-stephens
erik-stephensalmost 7 years ago
We've thought about deploying sentry for application level errors. Maybe this will help tip the scales 🙂
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Do you use #helmfile?
erik-stephens
erik-stephensalmost 7 years ago
Yup!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Ours is here
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
For sentry
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
And the forwarder
erik-stephens
erik-stephensalmost 7 years ago
You know of any issues with your charts working in air-gapped (no internet access) environments?
erik-stephens
erik-stephensalmost 7 years ago
Just curious, cuz we typically have to fork charts to get them working here.
erik-stephens
erik-stephensalmost 7 years ago
Nevermind, those are helmfiles :)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Unfortunately, no experience working in airgapped environments
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
@erik-stephens totally randomly (just right now) I stumbled across this tool: https://github.com/max-rocket-internet/k8s-event-logger
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
it's a pretty smart solution.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
basically you just deploy a pod that echos the events to stdout
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
that way whatever logging solution you already have in place will capture them 😃
Roderik van der Veer
Roderik van der Veeralmost 7 years ago
What is the best way to test helm charts (on travisci)? I was trying to do helm install --dry-run --generate-name but it needs a k8s cluster which is a lot of setup. Does helm lint also generate the yaml files?
Jonathan
Jonathanalmost 7 years ago
try template , it is very useful to see how the files will be generated
Roderik van der Veer
Roderik van der Veeralmost 7 years ago
cool, i went with helm lint "$d" && (helm template "$d" | kubeval)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Nice tip
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago(edited)
btai
btaialmost 7 years ago
other than this feature introduced as alpha in k8s 1.16, is there an simple way to evenly distribute a type of pod onto a cluster (i.e. 100 redis pods distributed onto a 10 node cluster = 10 redis pods per node) currently on 1.13/1.14 clusters https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/