$ minikube tunnel
$ consul-k8s upgrade -config-file values.yaml
$ sudo touch /etc/consul.d/ingress-gateway.hcl
$ consul reload Configuration reload triggered
$ sudo touch /etc/systemd/system/ingress-gateway.service
$ sudo systemctl enable ingress-gateway Created symlink ...
$ sudo systemctl start ingress-gateway
$ sudo systemctl status ingress-gateway ingress-gateway.service - "Consul ingress gateway" Loaded: loaded (...) Active: active (running)...
$ kubectl apply -f ingress-gateway.yaml ingressgateway.consul.hashicorp.com/my-gateway created
$ kubectl get ingressgateway NAME SYNCED LAST SYNCED AGE my-gateway True 17s 17s
$ kubectl edit ingressgateway my-gateway ingressgateway.consul.hashicorp.com/my-gateway edited
$ kubectl delete ingressgateway my-gateway ingressgateway.consul.hashicorp.com/my-gateway deleted
$ consul config write ingress-gateway.hcl Config entry written: ingress-gateway/my-gateway
$ consul config list -kind ingress-gateway my-gateway
$ consul config write ingress-gateway.hcl Config entry written: ingress-gateway/my-gateway
$ consul config delete -kind ingress-gateway -name my-gateway Config entry deleted: ingress-gateway/my-gateway
$ kubectl apply -f ingress-gateway.yaml ingressgateway.consul.hashicorp.com/ingress-gateway created
$ kubectl get ingressgateway ingress-gateway -n consul NAME SYNCED LAST SYNCED AGE ingress-gateway False 1s
$ kubectl describe ingressgateway ingress-gateway -n consul ... Status: Conditions: Last Transition Time: ... Message: writing config entry to consul: Unexpected response code: 500 (rpc error making call: service "frontend" has protocol "tcp", which does not match defined listener protocol "http") Reason: ConsulAgentError Status: False Type: Synced Events: <none>
$ kubectl apply -f proxy-defaults.yaml proxydefaults.consul.hashicorp.com/global created
$ kubectl get proxydefaults global -n consul NAME SYNCED LAST SYNCED AGE global True 9s 9s
$ kubectl get ingressgateway ingress-gateway -n consul NAME SYNCED LAST SYNCED AGE ingress-gateway True 9s 1m
$ vagrant ssh
$ cd ~
$ touch ingress-gateway.hcl
$ consul config write ingress-gateway.hcl Error writing config entry ingress-gateway/ingress-gateway: Unexpected response code: 500 (service "frontend" has protocol "tcp", which does not match defined listener protocol "http")
$ consul config write proxy-defaults.hcl Config entry written: proxy-defaults/global
$ consul config write ingress-gateway.hcl Config entry written: ingress-gateway/ingress-gateway
$ sudo systemctl daemon-reload
$ sudo systemctl restart frontend