Ashish Chalak

Results 8 comments of Ashish Chalak

[myhost:/home/users/ashishrajshek/consul-registration-hook/cmd/consul-registration-hook]$ export KUBERNETES_SERVICE_HOST=10.73.28.78 [myhost:/home/users/ashishrajshek/consul-registration-hook/cmd/consul-registration-hook]$ export KUBERNETES_SERVICE_PORT=6443 [myhost:/home/users/ashishrajshek/consul-registration-hook/cmd/consul-registration-hook]$ ./consul-registration-hook register k8s 2020/07/14 05:43:55 consul-registration-hook (version: ) 2020/07/14 05:43:55 Registering services using data from Kubernetes API 2020/07/14 05:43:55 error getting services to...

Hi Oskar, Thanks for your quick response. Let me check via POD and get back.

What is the value I should be passing in GS_URL, KUBERNETES_POD_NAME, KUBERNETES_POD_NAMESPACE and HOST_IP in below yaml file. I have a consul running on http://10.73.28.78:8500 apiVersion: v1 kind: Pod metadata:...

I also have access to Service Account directory [myhost:/home/users/ashishrajshek]$ kubectl run my-shell --rm -i --tty --image ubuntu:latest -- bash If you don't see a command prompt, try pressing enter. root@my-shell:/#...

Getting this exception when trying to register via POD. $kubectl describe pod pod-with-consul-hook Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled default-scheduler Successfully assigned default/pod-with-consul-hook...

I elevated the permissions to admin role. In POD Events i get the below exceptions: Warning FailedPostStartHook 3m17s kubelet, myhost.com Exec lifecycle hook ([/bin/sh -c /hooks/hooks/consul-registration-hook register k8s]) for Container...

Are logs stored anywhere inside POD while registering and de registering services. If yes which location?

Any idea on this exception: Warning FailedPostStartHook 40s (x3 over 66s) kubelet, myhost.com Exec lifecycle hook ([/bin/sh -c /hooks/hooks/consul-registration-hook register k8s]) for Container "cidtestserver" in Pod "cidtestserver-2_default(a56d696a-e3df-4a07-8d86-65a36e38f284)" failed - error:...