Side Car Injection

  1. Inject the sidecar into the application pods
kubectl get deployment arcadia-frontend -oyaml | nginx-meshctl inject | kubectl apply -f -
kubectl get deployment arcadia-login -oyaml | nginx-meshctl inject | kubectl apply -f -
kubectl get deployment arcadia-stock-transaction -oyaml | nginx-meshctl inject | kubectl apply -f -
kubectl get deployment arcadia-stocks -oyaml | nginx-meshctl inject | kubectl apply -f -
kubectl get deployment arcadia-users -oyaml | nginx-meshctl inject | kubectl apply -f -
  1. Wait for the sidecar to be injected in all pods and verify that the pods have 2 containers
kubectl get pods
Output
NAME READY STATUS RESTARTS AGE arcadia-db-6cb9cfcb44-l2v26 1/1 Running 0 85m arcadia-frontend-59b7c8d784-4xxvf 2/2 Running 0 6m25s arcadia-frontend-59b7c8d784-nzz5b 2/2 Running 0 6m11s arcadia-login-8599ff74b7-hg4mc 2/2 Running 0 6m11s arcadia-login-8599ff74b7-sf4p4 2/2 Running 0 6m24s arcadia-stock-transaction-684f86d649-5mzbf 2/2 Running 1 6m22s arcadia-stock-transaction-684f86d649-nqk4s 2/2 Running 1 6m7s arcadia-stocks-56ccc548d5-c48mf 2/2 Running 0 6m21s arcadia-stocks-56ccc548d5-jzq64 2/2 Running 0 6m11s arcadia-users-6df4f9fb7c-42dsr 2/2 Running 1 6m19s arcadia-users-6df4f9fb7c-8jv8h 2/2 Running 1 6m8s
  1. Propagate the opentracing headers so we can get full visibility within the mesh