#kubernetes - October 2018

October 2018
Dan
Danabout 8 years ago
@Erik Osterman (Cloud Posse) yes sir!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
@Andriy Knysh (Cloud Posse) can you add some context?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
this link https://aws.amazon.com/blogs/opensource/provision-aws-services-kubernetes-aws-service-broker/ describes an AWS service broker for k8s so we could provision some AWS resources from Kubernetes (e.g. Load Balancers or Route53 records)
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
erik
erikabout 8 years ago
Gaurav
Gauravabout 8 years ago
Hello
Gaurav
Gauravabout 8 years ago(edited)
[root@server kubernetes]# kubectl run hello-minikube --image=worpress The connection to the server localhost:8080 was refused - did you specify the right host or port?
Gaurav
Gauravabout 8 years ago
How to fix this
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
hey @Gaurav - please share a little bit more about your env
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
are you on linux or mac?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
@Gaurav the error usually means that kube config is not set or not found. Take a look here, hopefully some of the answers will work for you: https://github.com/kubernetes/kubernetes/issues/23726
Gaurav
Gauravabout 8 years ago
Thanks @Erik Osterman (Cloud Posse) and @Andriy Knysh (Cloud Posse)
Gaurav
Gauravabout 8 years ago
I am running this command in my centos7 desktop machine
Gaurav
Gauravabout 8 years ago
Didn't got a fix yet :(
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Ok, so you’ve already installed minikube? If so, how did you go about it?
samh
samhabout 8 years ago
@samh has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Gaurav
Gauravabout 8 years ago
Thanks @Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Rohit Verma
Rohit Vermaabout 8 years ago
@Erik Osterman (Cloud Posse) any idea about making https://www.telepresence.io work with geodesic
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I don’t think geodesic stands in the way.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
isn’t it just a glorified (but cool) reverse proxy?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
i thought it replaces your pod for your service
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
and then proxies it back to your local workstation
Rohit Verma
Rohit Vermaabout 8 years ago
that's correct, but it also modifies entries in iptables
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
oh really?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
IMO (“in a perfect world”), seems like one should just replace the image with vendor/telepresence and pass some kind of KEY env
Rohit Verma
Rohit Vermaabout 8 years ago
yes, I couldn't debug it completely but it worked flawlessly when running natively but within geodesic it doesn't able to resolve the proxied items
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
oh
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
are you saying the iptables stuff happens locally?
Rohit Verma
Rohit Vermaabout 8 years ago
yes
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
aha, i see
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
yea, makes sense - now I understand what you want to do and how geodesic affects that
Rohit Verma
Rohit Vermaabout 8 years ago
someway if geodesic can use the mac's iptable or sync with that
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
can you do something like you did with kubectl proxy?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
port bind
Rohit Verma
Rohit Vermaabout 8 years ago
actually there isn't a way to pass port binding
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I can’t think of a practical way to keep it in geodesic
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I think you’d need to export a kubecfg and run telepresence and kubectl natively
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
or run your apps in geodesic
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
e.g. nodejs app
Rohit Verma
Rohit Vermaabout 8 years ago
i thought that also
Rohit Verma
Rohit Vermaabout 8 years ago
will raise an issue about it on their git, let's see if they have a recommendation
lvh
lvhabout 8 years ago
anyone know of a neat secrets management thing that lets me back stuff up when using GKE + KMS
lvh
lvhabout 8 years ago
(I know etcdctl exists, I'm just wondering if that's literally how you do it)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
The alternative is to encrypt all secrets in git using public KMS key. Then the system of record is git. Thus restoring is more about redeploying.
Jeremy G (Cloud Posse)
Jeremy G (Cloud Posse)about 8 years ago
Max Moon
Max Moonabout 8 years ago
re: secure... Previously I used helm in a "Helm per namespace" model. Meaning, each app resided in it's own namespace, each namespace got it's own tiller, and each tiller got locked down by some very restrictive RBAC policies. Because of how Tiller operates, it effectively is a "giant sudo server", as the author puts it, but with the right policies, it can be used safely. What I most often hear is "what if someone gets on the tiller pod, they can do anything!" which is solved by the helm-per-namespace model. I wrote policies that allowed helm/tiller to create, update, and read within it's own namespace (meaning, i, as a human, was required to destroy something, because from day 2 on this wasn't required very often), and any attempt to retrieve any information from k8s outside of the namespace was denied.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
the tiller is also slated to be deprecated in helm v3, for a strictly client-side operation
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
just like kubernetes, helm provides an interface for representing applications on kubernetes
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
kubernetes secrets, for example, are an interface for representing sensitive information. until kubernetes 1.8 these weren't encrypted and people scoffed at it too. these are fair critiques that don't go unnoticed. the thing is though, because these interfaces are defined well, the underlying implementations can be improved. that's what happened with kubernetes secrets.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
the same will happen with helm and it won't require massive re-tooling.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
(via one of the comments)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago

but I’m not sure about Lua scripting because it can add additional complexity to the charts.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
while I'm not crazy about Lua, it's worked out well for Nginx as the embedded language.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
in terms of adding complexity, strongly disagree
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
I don't think gotemplating is easier to manage complexity. i think an actual language that could evolve into a DSL would be better. Lua has that potential.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago(edited)
also, v3 won't be limited to Lua. that's just the first alternative engine they are introducing. gotemplating will still be supported.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago

pull-based DevOps workflow, a new Helm Controller project will be started
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
is this related to Flux?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
not sure if i prefer terraform managing helm to helmfile managing helm
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
we’ve had to do a lot of conditional logic to support helm configuration which is supported by helmfile
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
but configurable values in helm is not easy. maybe with 0.12 it will be a viable alternative.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
with terraform shared state as a service, it may win me over
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Dave Yu
Dave Yuabout 8 years ago
a kops column would be nice
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
yea, I guess they are looking more at managed offerings
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
but kops would be good for comparison nonetheless
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
what’s going on with Alibaba Cloud ACK ? 🙂 (failed in many cases)
Ryan Ryke
Ryan Rykeabout 8 years ago
whats the go to deployment tool you guys are using
Ryan Ryke
Ryan Rykeabout 8 years ago
im looking for something that is simple for customers without any k8 experience
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago(edited)
haha @Ryan Ryke, that would be Heroku 🙂
Ryan Ryke
Ryan Rykeabout 8 years ago
smarty pants
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
and we have a collection of common helmfiles we use https://github.com/cloudposse/helmfiles
Ryan Ryke
Ryan Rykeabout 8 years ago(edited)
so you are running tiller and such on k8?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
yes
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
also @Ryan Ryke, we use https://codefresh.io for CI/CD
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
in there, you can deploy a helm chart to a k8s cluster from the console
Ryan Ryke
Ryan Rykeabout 8 years ago
have you guys looked at jenkins x?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
you can have a helm chart in any repositories (museums), they even offer their own Managed Helm repos
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
no, we did not use jenking x for that
Ryan Ryke
Ryan Rykeabout 8 years ago
its too bad the aws tools arent a little better suited
Ryan Ryke
Ryan Rykeabout 8 years ago
skaffold looks cool too
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago
yea AWS is lacking a lot in k8s space
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Looks like Deis and Dies Workflow are both no longer maintained
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Those were the reason though helm exists
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
They are built to create a Heroku like experience for Kubernetes
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Oh looks like Flynn is still alive and well https://github.com/flynn/flynn
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Imo the were the underdog to deis. Deis got acquired by Microsoft and got abandoned shortly there after .
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
@Daren ☝️
Dan
Danabout 8 years ago
scimmed it quick, is it free?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
as far as I can tell
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 8 years ago
Dan
Danabout 8 years ago
yea i went to the Kubecost website at the bottom of the article
Dan
Danabout 8 years ago
and they had some pricing shennigans
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 8 years ago