#kubernetes - August 2018

August 2018
Phil
Philover 8 years ago
@Phil has joined the channel
my-janala
my-janalaover 8 years ago
@my-janala has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 8 years ago
jylee
jyleeabout 8 years ago
@jylee has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Dan
Danabout 8 years ago
@Dan has joined the channel
Michael Holt
Michael Holtabout 8 years ago
@Michael Holt has joined the channel
Dylan
Dylanabout 8 years ago
@Dylan has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
erik
erikabout 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
@Daren @Michal Matyjek are you using this? I didn’t know about this.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Daren
Darenabout 8 years ago
@Erik Osterman (Cloud Posse) No. Id wait for an official upgrade path., but it will be welcome
tarrall
tarrallabout 8 years ago
@tarrall has joined the channel
Max Moon
Max Moonabout 8 years ago(edited)
Kind of an edge case scenario, but lead me to finding some (older) issues for nginx-ingress, but other folks might run into this as well.. There is a known race condition in the 0.11 release of nginx-ingress that leads to a race condition that causes the mechanism that retrieves secrets to fail, if and only if, you are creating multiple ingresses w/ TLS enabled.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
this is with kube-lego?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
@Rohit Verma ☝️
Max Moon
Max Moonabout 8 years ago
correct
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
btw, rohit contributed cert manager
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
but I haven't tried it out yet
Max Moon
Max Moonabout 8 years ago
i haven't gotten around to moving to cert manager yet either
Max Moon
Max Moonabout 8 years ago
From the git issues I was seeing, the main guy that works on nginx-ingress (git user: aledbf) fixed it pretty quickly in later releases, apparently should be stable in >= 0.13
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I think this issue is what led @Dave Yu and @Jonathan Olson to ultimately switch to ACM
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
less fancy and not dynamic
Dave Yu
Dave Yuabout 8 years ago
@Dave Yu has joined the channel
Max Moon
Max Moonabout 8 years ago
yeah, i think that for staging (especially unlimited staging env) cert-manager or kube-lego is fine, but for prod, ACM (for now) is the way to go
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
yea
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
have you set that up?
Max Moon
Max Moonabout 8 years ago
in the process of
Max Moon
Max Moonabout 8 years ago
Also, learned a bit about this, this morning, very cool. https://cilium.io/ Saw it featured on the TGI Kube thing that Joe Beda/Heptio does
Max Moon
Max Moonabout 8 years ago(edited)
FWIW: Updated to use nginx-ingress 0.15.0 and all my services are still available and the race condition is fixed
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Max Moon
Max Moonabout 8 years ago
thanks!
Rohit Verma
Rohit Vermaabout 8 years ago
@Erik Osterman (Cloud Posse) We have even stopped using certmanager and nginx ingress controller , we are currently using ACM and kube-aws-ingress-controller
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
thanks for the update
Rohit Verma
Rohit Vermaabout 8 years ago
This is a better setup if we are not require to rewrite targets
Rohit Verma
Rohit Vermaabout 8 years ago
I would also recommend to switch to CoreDns
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
how was kube-aws-ingress-controller to setup? is this the same are the original coreos alb ingress?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
(does kube-aws-ingress-controller use ALBs?)
Rohit Verma
Rohit Vermaabout 8 years ago
yes kube-aws-ingress-controller use ALB
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
nice
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
did you need to specify the subnets?
Rohit Verma
Rohit Vermaabout 8 years ago
but its very different than coreos alb ingress
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
or security groups
Rohit Verma
Rohit Vermaabout 8 years ago
no, it doesn’t work that way
Rohit Verma
Rohit Vermaabout 8 years ago
it takes only region
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
(the coreos one didn't autodiscover a lot - at least when we tried it, and ultimate felt it wasn't worth it)
Rohit Verma
Rohit Vermaabout 8 years ago
but then discover autodiscover all components
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
sweet!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
do you have a helmfile you can share?
Rohit Verma
Rohit Vermaabout 8 years ago
coreos had only single alb ingress controller, they have another forwarder component as skipper
Rohit Verma
Rohit Vermaabout 8 years ago
i don’t have helmfile but can share my manifest.
Rohit Verma
Rohit Vermaabout 8 years ago
Rohit Verma
Rohit Vermaabout 8 years ago
it automatically discover the acm also which we have created as part of root modules
Rohit Verma
Rohit Vermaabout 8 years ago
another cool thing would be to enable aws-iam-authenticator by default
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
so you're not using the zalando helm chart?
Rohit Verma
Rohit Vermaabout 8 years ago
nopes
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
how come?
Rohit Verma
Rohit Vermaabout 8 years ago
my policy is, if the setup is not too complicated kubectl apply is preferred
Rohit Verma
Rohit Vermaabout 8 years ago
this a very simple setup
Rohit Verma
Rohit Vermaabout 8 years ago
and if the chart didn’t work in 3 trials , use kubectly lack of time
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
(haha, you had me googling kubectly) 😃
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
yea, a bit of time goes to maintaining charts
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
interested to see what other engines will be introduced in helm 3
Rohit Verma
Rohit Vermaabout 8 years ago
i am awaiting when helm3 will be launched, specially as of namespace limitation
Rohit Verma
Rohit Vermaabout 8 years ago
i couldn’t use helm to manage our internal service
Rohit Verma
Rohit Vermaabout 8 years ago
hey did you got chance to try with .dockerenv in xx.cloudpose.co modules
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
We're doing something similar for Caltech. Building a kubernetes-in-a-box distro with geodesic as the base image
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
And a pretty setup menu.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
We're writing the env to /localhost/.geodesic/env and then sourcing it on load.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
It's similar in design, but not using a .dockerenv
Rohit Verma
Rohit Vermaabout 8 years ago
nice
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
also, we've got a poc running #geodesic containers in CI/CD
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
(codefresh)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
lots of PRs in the past week to polish up the geodesic base image for that
Rohit Verma
Rohit Vermaabout 8 years ago
if I got it right, you are saying you did setup a ci/cd for complete dev.cp.co environment, correct?
Rohit Verma
Rohit Vermaabout 8 years ago
that is very cool, i was trying to samething at some point of time,
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Yes, we got it as far as running init-terraform and terraform plan
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
nothing precluding apply
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
😃
Rohit Verma
Rohit Vermaabout 8 years ago
but doing that with Codefresh, isn’t unsecure, cause geodesic require nearly adminacess to setup env
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
also, going to start adding some testing
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
CD of infrastructure requires admin access pretty much
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
either that be CodeBuild, Jenkins, or any other system.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
our strategy is multipronged
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
use multiple pipelines for different kinds of CI and CD
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
and use multiple codefresh accounts, one per stage
Rohit Verma
Rohit Vermaabout 8 years ago
I agree but I will rely on instance profile more than a exposing admin credentials
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Yea, just codebuild is more teadious iMO to work with
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
codefresh enterprise supports running agents on prem
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
also, the way we're currently pursuing this is still running aws-vault inside of codefresh
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
to generate short-lived sessions
Rohit Verma
Rohit Vermaabout 8 years ago
that is much better, i would probably continue with codebuild since we are not using aws-vault also 🙂
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
yea... you're diverging but that's cool
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
😃
Rohit Verma
Rohit Vermaabout 8 years ago
once you are finished, if you decided to openup I will translate to a codebuild pipeline for you 🙂
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
that would be cool
Rohit Verma
Rohit Vermaabout 8 years ago
anyways since this is very limited build minutes, it would be easily covered under build plane
Rohit Verma
Rohit Vermaabout 8 years ago
by the way do you come across this project https://github.com/GoogleContainerTools/kaniko
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Haven't seen it
Rohit Verma
Rohit Vermaabout 8 years ago
Similar tools include:

img
orca-build
umoci
buildah
FTL
Bazel rules_docker
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
just came across img the other day
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
not something though we're optimizing for
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
honestly, there's too much to solve
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
i'd rather not also have to solve building
Rohit Verma
Rohit Vermaabout 8 years ago
just checking
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
have you used probot/hubot?
Rohit Verma
Rohit Vermaabout 8 years ago
nope, never heard actually
Rohit Verma
Rohit Vermaabout 8 years ago
we are mostly on gitlab
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
ok
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
i like the way the kubernetes/charts PRs work. how authorized users can issue commands via comments.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
want to do that via slack and github
Rohit Verma
Rohit Vermaabout 8 years ago
this is also very cool, github is actually coolest of all. I wish my org wasn’t such a miser to use the free gitlab 😛
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
haha, these days it feels like i just hear how awesome gitlab is 😃
erik
erikabout 8 years ago
Geodesic “Kiosk” Mode
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Using dialog we’ve created a simple menu system to spin up kubernetes clusters with the full ML stack they need.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
One-click create/destroy cluster
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Uses helmfile to install all charts
Dan
Danabout 8 years ago
what are some interview questions that come up for k8?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I’m not quite sure - haven’t interviewed 😃
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
but I can share the line of questioning I use
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I like to start broad - first ask about the kubernetes architecture. what are all the daemons used to create a kubernetes cluster. the objective here is to see if the candidate is just a user or operator.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
if they don’t know, then they are a user. if they answer correctly (e.g. api server, controller, kubelet, proxy, etc), then I dig down into each one of those to see what level of depth they have.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
if they are just a user, that’s cool too - with kops, you barely need to know the underlying services any more
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
then I ask them to rattle off as many resource types as they can. it shows what they’ve used.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
then when to use what kind of resource type and when.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I like to ask what kinds of problems they’ve encountered in the past and how they solved them.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I like to ask what kinds of apps they’ve deployed and how they deployed it. if they deployed stateful apps, i’m always curious if the risks are well understood.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
i like to know what integrations they’ve used with kubernetes. for example, if they haven’t used helm, that would be a redflag.
Dan
Danabout 8 years ago
thank you!
Dan
Danabout 8 years ago
this helps!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Interesting....
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
<https://github.com/kubernetes/charts> now redirects to <https://github.com/helm/charts>