skupperproject / skupper-docs

Documentation for the Skupper project
https://skupper.io
5 stars 8 forks source link

Update instructions around exposing from a different ns #159

Open pwright opened 1 year ago

pwright commented 1 year ago

ATM, there's https://skupper.io/docs/cli/index.html#exposing-services-from-different-ns However, there are now options to :

This feature allows Skupper to monitor deployments in other namespaces

Add doc for these options

NOTE seems to work without --enable-cluster-permissions

  skupper init
  kubectl create namespace east
  kubectl create deployment backend --image quay.io/skupper/hello-world-backend --replicas 3 --namespace east
  skupper expose deployment/backend --port 8080 --target-namespace east
  skupper service status
  kubectl create deployment frontend --image quay.io/skupper/hello-world-frontend
  kubectl expose deployment frontend --port 8080 --type LoadBalancer
  kubectl get service/frontend
pwright commented 1 year ago

@grs Should we replace existing doc above? or add an optional extra procedure?

Also, does user need extra privs to --enable-cluster-permissions (eg cluster-admin)

grs commented 1 year ago

Yes, --enable-cluster-permissions requires cluster level privileges. I think we should expand the section to show both targeting a service and a set of pods (e.g. deployment) and explain the differences between the two.