Question: Hi, anyone know why when i use stateful set, any pods in stateful set cannot access other servive by service ip?

Asked By
alfianabdi
Asked At
2017-09-04 16:12:57

Found 15 possible answers.

User Answered At Possible Answer
ccshih 2017-09-04 16:14:25 Hi, are there any built-in method to check/modify object configuration before configuration takes effect? As an example scenario, I want to ensure that pods with a specific label are not allowed.
ccatlett2000 2017-09-04 16:22:36 Are you sure this is StatefulSets only?
alfianabdi 2017-09-04 16:23:18 Also if anyone know how to change data dir for etcd running as container in coreos. I have tried to set Environment="etcd_data_dir=${newdir}" but that does not work. Or should i just mount an external disk to /var/lib/etcd and left the config as default?
ccatlett2000 2017-09-04 16:23:41 https://kubernetes.io/docs/admin/extensible-admission-controllers/
tutj 2017-09-04 16:23:44 hi guys does someone use client-go with apiextensions-apiserver library
ccatlett2000 2017-09-04 16:24:33 Theoretically you can just change where the data is mounted outside the container via the manifest
tutj 2017-09-04 16:24:42 when i use this library to craete crd it shows the errot of "net/http: invalid header field value" of token
ccatlett2000 2017-09-04 16:25:29 I think it says on there, but initializers are for modifying, and webhooks cannout
tutj 2017-09-04 16:25:37 even curl is working well with token and ca.cert
ccatlett2000 2017-09-04 16:25:43 However if you don't need to modify it's better to use a webhook because they're better performance
alfianabdi 2017-09-04 16:26:05 Yes, i have some services running and it can talk to each other via service dns or service ip. But when i tried to access them from statefulset, i didnot work. Yes, i have some services running and it can talk to each other via service dns or service ip. But when i tried to access them from statefulset, i didnot work. [September 4th, 2017 9:12 AM] alfianabdi: Hi, anyone know why when i use stateful set, any pods in stateful set cannot access other servive by service ip?
ccatlett2000 2017-09-04 16:27:06 Can you check: 1. Are pods in the StatefulSet able to resolve DNS at all (Something like dig service-name )
alfianabdi 2017-09-04 16:27:16 No
ccatlett2000 2017-09-04 16:27:59 Are they able to ping pod IPs, or just not services?
alfianabdi 2017-09-04 16:29:42 Yes, they can Can connect to any pods ip

Related Questions