#kubernetes - January 2019

January 2019
warrenvw
warrenvwalmost 8 years ago
Hello. I’m curious if anyone has had performance issues running kubectl against an EKS cluster? kubectl get po takes 5 seconds to complete. FWIW, when I used kops to create the cluster, kubectl get po would return quickly.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
hrmmmmm
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
same size nodes, and same number of pods?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
(roughly)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
...are you using IAM authenticator with both?
warrenvw
warrenvwalmost 8 years ago
actually, worker nodes are bigger.
warrenvw
warrenvwalmost 8 years ago
let me confirm IAM authenticator
warrenvw
warrenvwalmost 8 years ago
yep. uses aws-iam-authenticator.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
so kops uses aws-iam-authenticator as well...
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
hrm...
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
@Andriy Knysh (Cloud Posse) have you noticed this?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
(btw, are you using our terraform modules for EKS?)
warrenvw
warrenvwalmost 8 years ago
sorry, no, at least not yet.
warrenvw
warrenvwalmost 8 years ago
i wanted to find out if this is an EKS thing in general.
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
When I was testing EKS, I didn’t notice any delay
warrenvw
warrenvwalmost 8 years ago
okay, that’s a good data point. thanks.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
(@Andriy Knysh (Cloud Posse) wrote all of our EKS terraform modules)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
Maybe the Authenticator is slow to connect to AWS
warrenvw
warrenvwalmost 8 years ago
i’ll investigate that. thanks.
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
Also, how do you access the kubeconfig file?
warrenvw
warrenvwalmost 8 years ago
default ~/.kube/config
warrenvw
warrenvwalmost 8 years ago
something must not be configured properly. i’m investigating. i’ll let you know what i discover.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
sometimes using strace helps me figure out what the process is doing
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
enough to dig deeper
Webb
Webbalmost 8 years ago
@Webb has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
I saw a demo of this yesterday and am super impressed.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
I’ve invited @Webb to #kubecost, so if you have any questions ping him.
Webb
Webbalmost 8 years ago
Thanks for the kind words, @Erik Osterman (Cloud Posse)! We're ready & available to help with tuning kube infrastructure!
Igor Rodionov
Igor Rodionovalmost 8 years ago
@Erik Osterman (Cloud Posse)
Check this out. New Year it the time to imagine it.
https://blog.giantswarm.io/the-state-of-kubernetes-2019/
sarkis
sarkisalmost 8 years ago
Just got access to the GKE Serverless Add-on beta: https://cloud.google.com/knative/
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
wow thats slick
sarkis
sarkisalmost 8 years ago
i'm going to give it a spin... looks interesting!
sarkis
sarkisalmost 8 years ago
feels a little bit like fargate is to ECS
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
yea, that’s how interpreted it
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
hah, we’ve all heard of dind (docker in docker)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
frednotet
frednotetalmost 8 years ago
hi everyone ! I'm struggling to implement a CI/CD with Gitlab... I do have several different k8s cluster (one per stage "test", "dev", "stg" and "prd") on different aws accounts (one per stage as before). I cannot find help on 2 things: how to target a specific cluster depending the branch ? and since we're working with micro-services: how to keep a running version of my deployments on each cluster with a generic name not depending the branches names; but allowing an auto-deploy with uniques names in only one stage ? Could someone help me or link me to a good read/video about it ? right now, I just have my fresh new cluster; I still have to install/config everything (using helm).
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
hahaha there’s your problem.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
😃
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago

I’m struggling to implement a CI/CD with Gitlab...
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
We highly recommend #codefresh.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Codefresh makes it trivial to select the cluster.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
We’ve used different strategies.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
e.g. for release tags
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
1.2.3-prod or 1.2.3-staging
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
for branches, I suggest using a convention.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
e.g.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago(edited)
a branch called staging/fix-widgets would go to the staging cluster
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago

how to keep a running version of my deployments on each cluster with a generic name not depending the branches names;
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago(edited)
Oops. Missed that.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
So, the meta data needs to come from somewhere.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
It can be ENVs in the pipeline configuration.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago(edited)
It can be branch or tag names. Note, you can use tags for non-production releases.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
It can be manual when you trigger the deployments
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
@frednotet ☝️
vitaly.markov
vitaly.markovalmost 8 years ago
cause Codefresh designed for using within Kubernetes, when Gitlab more general purpose 🙃
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
yes, exactly..
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
built from the ground up with support for docker, compose, swam, kubernetes, and helm.
frednotet
frednotetalmost 8 years ago
Thanks I’m reading
frednotet
frednotetalmost 8 years ago
(I just achieved my integration of gitlab but indeed I still have this multiple cluster that requires me to take the gitlab EE)
erik
erikalmost 8 years ago
Ajay Tripathy
Ajay Tripathyalmost 8 years ago
@Ajay Tripathy has joined the channel
btai
btaialmost 8 years ago
anyone have authentication problems using metrics-server with a kops cluster? Also wondering if anyones run into heapster continuously in a CrashLoopBackOff because of OOMKilled
btai
btaialmost 8 years ago
I’ve tried increasing the mem limit on the heapster pod but it doesn’t seem to increase
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
I have seen that. I recall not being able to figure it out. We don’t have it happening any more. This was also on an older 1.9 kops cluster.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
it was driving me mad
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
no matter how much memory I gave it, it had no effect
btai
btaialmost 8 years ago
@Erik Osterman (Cloud Posse) how’d you fix it? im on 1.11.6 kops
btai
btaialmost 8 years ago
also have you switched to metrics-server
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
all our configurations are here:
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
---
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
i never ended up fixing it on that cluster. it was a throw away.
btai
btaialmost 8 years ago
you use prom insteaD?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
we do
btai
btaialmost 8 years ago
oh wait
btai
btaialmost 8 years ago
and heapster
btai
btaialmost 8 years ago
you dont use heapster-nanny?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago(edited)
i don’t know the details
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
@Igor Rodionov would probably
btai
btaialmost 8 years ago
the OOMKilled is also driving me mad 😄
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
yea, sorry man!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
i literally spent days on it
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
and didn’t figure it out
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
@Daren I forgot who is doing your prometheus stuff
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
I was having this problem on one of your clusters.
btai
btaialmost 8 years ago
do you guys know why when I try to edit a deployment with kubectl edit the changes I make don’t stick?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
usually it will emit an error when you exit kubectl edit
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
if it doesn’t check $?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
kubectl edit ....; echo $?
btai
btaialmost 8 years ago
weird
btai
btaialmost 8 years ago
even if I increase the heapster deployment resource memory limit, it keeps dropping back down to 284Mi
btai
btaialmost 8 years ago
no error btw @Erik Osterman (Cloud Posse)

$ k edit deployment heapster -n kube-system
deployment.extensions/heapster edited
Daren
Darenalmost 8 years ago
@Erik Osterman (Cloud Posse) @btai we did have the heapster issue. I believe it was traced to having too many old pods for it to handle
Daren
Darenalmost 8 years ago
It tried to load the state of every pod include dead ones
btai
btaialmost 8 years ago
too many pods?
btai
btaialmost 8 years ago
we do have alot of pods
btai
btaialmost 8 years ago
were u able to fix it daren via configuration?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
also, i think daren is talking about exited pods
Daren
Darenalmost 8 years ago
Yes
btai
btaialmost 8 years ago
@Daren since youre using kube-state-metrics, are you unable to use k top anymore
Daren
Darenalmost 8 years ago
Honestly, Ive never used it, and it appears it does not work
Daren
Darenalmost 8 years ago

# kubectl top pod

Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
btai
btaialmost 8 years ago
i see
Max Moon
Max Moonalmost 8 years ago
https://github.com/stakater/IngressMonitorController pretty cool add-on for k8s to automatically provision health checks in 3rd party apps, these folks make a lot great open source projects, worth checking out
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Yes, stakater is cool
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
I’ve been following them too
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
erik
erikalmost 8 years ago
Max Moon
Max Moonalmost 8 years ago
Same here, I've been working on a "getting started on kubernetes" blog and was looking for fun new projects to include
Max Moon
Max Moonalmost 8 years ago(edited)
I've been trying new projects out on a Digital Ocean K8s cluster, it's multi-master + 2 workers, 100gb storage, and a LB for $30 a month
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
that’s cool
Max Moon
Max Moonalmost 8 years ago
not too shabby for development
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
@Igor Rodionov has been doing that too
Max Moon
Max Moonalmost 8 years ago(edited)
It's honestly a very nice experience, as you know, my setup at work is very smooth already 😉
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
haha, that said, always want to make things smoother
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
I think the ease-of-use of GKE/digital ocean k8s is what we aspire to
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
while at the same time getting the IaC control
Max Moon
Max Moonalmost 8 years ago
Yeah! It's really nice to have the model to work off of
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Especially for smaller teams that don’t need all the bells and whistles and ultimate control over every little thing
Max Moon
Max Moonalmost 8 years ago(edited)
Agreed. My experience with GKE was so nice and smooth, very much so what I base a lot of our tools off of. Their cloud shell is very similar in function to Geodesic, as you're probably aware
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Yea, I saw that. I haven’t gone deep on it, but it validates the pattern.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Also, #geodesic is always positioned as a superset of other tools, which means the google cloudshell fits well inside 😉
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
But you bring up a good point.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
I think we can improve our messaging by comparing geodesic to the google cloud shell
Max Moon
Max Moonalmost 8 years ago
yeah, at least as an introduction to the idea
Igor Rodionov
Igor Rodionovalmost 8 years ago
@Max Moon @erik means I also use DO for my pet projects
Max Moon
Max Moonalmost 8 years ago
Right! We should chat
deftunix
deftunixalmost 8 years ago
hi everyone, i am creating a deployment example of nginx on kubernetes using manifest file and I want add prometheus monitoring on it
deftunix
deftunixalmost 8 years ago
do you have some github manifest t share?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Are you using prometheus operator?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
We use helmfile + prometheus operator to deploy monitoring for nginx-ingress here: https://github.com/cloudposse/helmfiles/blob/master/releases/nginx-ingress.yaml#L156
deftunix
deftunixalmost 8 years ago
@Erik Osterman (Cloud Posse) yes, I am using prometheus operator pattern 🙂
deftunix
deftunixalmost 8 years ago
@Erik Osterman (Cloud Posse) I see. I will analyse your code. I would like just to add monitoring on top a easy nginx deployment like https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/controllers/nginx-deployment.yaml
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago(edited)
I suggest using helm for repeatable deployments rather than raw resources
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
(unless this is just a learning exercise) 😃
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
We install the official nginx-ingress helm chart here: https://github.com/cloudposse/helmfiles/blob/master/releases/nginx-ingress.yaml
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
(helmfile is a declarative way of deploying helm charts)
deftunix
deftunixalmost 8 years ago
@Erik Osterman (Cloud Posse) yes, I am using helm. I was just trying to arrange an example based on manifest
btai
btaialmost 8 years ago
if I want to ssh into my EKS worker node, the default username is ec2user right?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago(edited)
@btai sorry - @Andriy Knysh (Cloud Posse) is heads down today on another project for a deadline on friday
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
have you made some headway?
btai
btaialmost 8 years ago
i figured out the ssh username, i just left my question in case someone else searches for it in the future
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
yep! that's great.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago(edited)
We're about to release our public slack archives (hopefully EOW)
btai
btaialmost 8 years ago
and once i got into my worker nodes, i was able to debug my issues
btai
btaialmost 8 years ago
I would change those subnet_ids to be private subnets and add a bastion module
btai
btaialmost 8 years ago
i can help you guys do that if you’d like
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago(edited)
yea, that's a good suggestion.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
We'd accept a PR for that (just saying...)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
haha
btai
btaialmost 8 years ago
@Erik Osterman (Cloud Posse) i remember u mentioning an aws iam auth provider that we should use for kubernetes
btai
btaialmost 8 years ago(edited)
which one was it? kube2iam?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
kiam
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
(avoid kube2iam)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
we have an example of deploying it in our helmfiles distribution
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
@btai are you unblocked? what was the issue with worker nodes not able to access the cluster?
btai
btaialmost 8 years ago
yes @Andriy Knysh (Cloud Posse) it was a stupid mistake, i had created the eks cluster security group but didn’t attach it to the cluster
btai
btaialmost 8 years ago
@Erik Osterman (Cloud Posse) what was the reasoning to avoid kube2iam?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
sec
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
thought we had a write up on it.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
can’t find it
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
so kube2iam has a very primitive model. every node runs an a daemon.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
when a pod needs an IAM session, it queries the metadata api which is intercepted by iptables rules and routed to the kube2iam daemon
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
that part is fine. that’s how kiam works more or less.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
the problem is if you run a lot of pods, kube2iam will DoS AWS
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
AWS doesn’t like that and blocks you. so the pod gets rescheduled to another node (or re-re-scheduled) until starts
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
so we have this cascading problem, where one-by-one each node starts triggering rate limits
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
and then it doesn’t back off
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
so now we have 5000 pods request IAM credential in an an aggresive manner and basically the whole AWS account is hosed.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
------
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
kiam has a client / server model
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
you run the servers on the masters. they are the only ones that need IAM permissions.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
the clients request a session from the servers. the servers cache those sessions.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
this reduces the number of instances hitting the AWS IAM APIs
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
and results in (a) faster assumed rules (b) less risk of tripping rate limits
btai
btaialmost 8 years ago
@Erik Osterman (Cloud Posse) awesome that makes sense. thanks for the detailed answer!
deftunix
deftunixalmost 8 years ago
hi everyone, I am deploying a prometheus operator to monitor my application. I probably misunderstood how it works
deftunix
deftunixalmost 8 years ago
basically, for each application or servicemonitor you will have a prometheus instance
deftunix
deftunixalmost 8 years ago
or you can share the cluster one with your application? what is the practice?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
@deftunix when you deploy prometheus operator, it will scrape all pods including the app, so you don’t need to anything special about it
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
it will create these resources
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
deftunix
deftunixalmost 8 years ago
yes, I have the prometheus operator running and monitoring my base infrastructure
deftunix
deftunixalmost 8 years ago
I deployed it using the coreos helm chart in a monitoring namespace but my application service are not scraped
deftunix
deftunixalmost 8 years ago
it's scarpping just a set of servicemonitors "seems" predefined
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago(edited)
does the app output any logs into stdout?
deftunix
deftunixalmost 8 years ago
yes! I deployed an nginx with the exporter. when I created with the operator a servicemonitor and prometheus instance
deftunix
deftunixalmost 8 years ago
dedicated to the app, it works
deftunix
deftunixalmost 8 years ago
the target appear
deftunix
deftunixalmost 8 years ago
I am following this
deftunix
deftunixalmost 8 years ago
but I was expecting that adding the annotation to the services the scrape was automatic
deftunix
deftunixalmost 8 years ago
and new target will be showed in my target list
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
did you also deploy kube-prometheus?
deftunix
deftunixalmost 8 years ago
in my "cluster-metrics" prometheus yes
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
so when you install kube-prometheus, it will install a bunch of resources including https://github.com/prometheus/node_exporter
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
which will scrape metrics
deftunix
deftunixalmost 8 years ago
yes, from node, apiserver, kubelets, kube-statistics 😄
deftunix
deftunixalmost 8 years ago
my problem are not the cluster-metrics, because them are fully supported by default by the helm chart but understand how the operator pattern work
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Would have assumed the threshold off a CrashLoopBackoff be configurable
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
I am working on a demo where we deliberably kill pods
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
so I want to show resiliency. oh well.
btai
btaialmost 8 years ago
have you guys checked out https://github.com/windmilleng/tilt
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago