Question: in a stateful set or a deployment?

Asked By
hubt
Asked At
2018-05-04 22:33:46

Found 15 possible answers.

User Answered At Possible Answer
phin 2018-05-04 22:33:50 Deployment
kennethscottbarry 2018-05-04 22:34:17 So, I ended up putting together this liveness probe. My app is touching this file so long as its working as expected,
livenessProbe:
Is there a better method for doing this?
          periodSeconds: 5
initialDelaySeconds: 30 - " find /var/log/heartbeat.log -newermt '-5 seconds' " - test command: exec:
hubt 2018-05-04 22:35:05 not really. start order isn't something they think about in a deployment. if you need it, you should use a stateful set
kennethscottbarry 2018-05-04 22:35:10 Find alone returned true weather ther were results or not
phin 2018-05-04 22:35:23 Alright, I'll look into it. Thanks Would setting the values in redis db0 be ok?
oivindoh 2018-05-04 22:35:55 @kennethscottbarry won’t that command return 0 regardless of outcome?
phin 2018-05-04 22:35:57 and monitoring pod starts/stops with the k8s api
oivindoh 2018-05-04 22:36:27 you need whatever you’re running to return with a nonzero code
kennethscottbarry 2018-05-04 22:38:37 correct
kenneth-mac:~ kenneth$ test "`find /tmp/timestamp -newermt '-5 seconds'`";echo $?
i touched /tmp/timestamp then ran this.
1 kenneth-mac:~ kenneth$ test " find /tmp/timestamp -newermt '-5 seconds' ";echo $? 0
oivindoh 2018-05-04 22:40:43 completely missed the test command
baconbeckons 2018-05-04 23:22:18 I'm trying to setup TLS with an nginx ingress. When I kubectl describe ing bacon-ingress , it shows bacon-tls terminates which is from Lets Encrypt, but when I view the page, a self-signed cert is used
smuniz 2018-05-04 23:54:59 I am having a hard time to add a node to an existing cluster using kubespray. Any help is welcomed.
mauilion 2018-05-04 23:59:26 maybe #kubespray ?
narzerus 2018-05-05 00:05:32 Hey guys, I ahve a question maybe someone knows the answer LOL. Nvm fixed it Gets stuck in boot. Looking at the logs it looks like a network error I simply cannot setup minikube on my mac?
mauilion 2018-05-05 00:10:38 what was it also welcome to #kubernetes-users I was betting on ip conflict

Related Questions