Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 1.33 KB

commands.adoc

File metadata and controls

82 lines (61 loc) · 1.33 KB
$ kubectl apply -f backend-deployment.yaml

deployment.apps/backend configured
$ kubectl apply -f backend-deployment.yaml

deployment.apps/backend configured
$ kubectl rollout status --watch deploy/backend

Waiting for deployment "backend" rollout to finish:
  1 old replicas are pending termination...
deployment "backend" successfully rolled out
$ vagrant ssh
$ consul reload
$ consul reload
$ kubectl apply -f backend-service-router.yaml

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

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

Config entry written: service-router/backend
$ 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            15m
$ consul config write backend-service-router.hcl

Config entry written: service-router/backend