Skip to content

Latest commit

 

History

History
137 lines (100 loc) · 2.31 KB

commands.adoc

File metadata and controls

137 lines (100 loc) · 2.31 KB
$ kubectl apply -f backend-service-resolver.yaml

serviceresolver.consul.hashicorp.com/backend created
$ kubectl get serviceresolver backend

NAME      SYNCED   LAST SYNCED   AGE
backend   True     1s            1s
$ consul config write backend-service-resolver.hcl

Config entry written: service-resolver/backend
$ kubectl apply -f backend-service-splitter.yaml

servicesplitter.consul.hashicorp.com/backend created
$ kubectl get servicesplitter backend

NAME      SYNCED   LAST SYNCED   AGE
backend   True     1s            1s
$ consul config write backend-service-splitter.hcl

Config entry written: service-splitter/backend
$ kubectl apply -f backend-v2-deployment.yaml
$ kubectl rollout status --watch deploy/backend-v2

deployment "backend-v2" successfully rolled out
$ consul reload

Configuration reload triggered
$ sudo systemctl enable backend-v2

Created symlink /etc/sys...
$ sudo systemctl start backend-v2
$ sudo systemctl enable backend-v2-sidecar-proxy

Created symlink /etc/sys...
$ sudo systemctl start backend-v2-sidecar-proxy
$ kubectl apply -f backend-service-router.yaml

servicerouter.consul.hashicorp.com/backend configured
$ kubectl get servicerouter backend

NAME      SYNCED   LAST SYNCED   AGE
backend   True     1s            1h
$ consul config write backend-service-router.hcl

Config entry written: service-router/backend
$ kubectl apply -f backend-service-splitter.yaml

servicesplitter.consul.hashicorp.com/backend configured
$ consul config write backend-service-splitter.hcl

Config entry written: service-splitter/backend
$ kubectl apply -f backend-service-splitter.yaml

servicesplitter.consul.hashicorp.com/backend configured
$ consul config write backend-service-splitter.hcl

Config entry written: service-splitter/backend