sdcio / config-server

Apache License 2.0
6 stars 1 forks source link

add sdctl procedure in troubleshooting guide #114

Closed henderiw closed 8 months ago

henderiw commented 8 months ago

we install by default for now, optimization can come in the future

hansthienpondt commented 8 months ago

Dependent on https://github.com/sdcio/sdctl/issues/5

hansthienpondt commented 8 months ago
hansthienpondt commented 8 months ago

This is done by default. time="2024-02-21T15:18:48Z" level=info msg="starting server on :56000"

❯ kubectl exec sdctl -- /app/sdctl -a data-server.network-system.svc.cluster.local:56000 --format json datastore get --ds default.sr1 | jq .target { "type": "netconf", "address": "172.22.1.11:830", "status": 1 }

henderiw commented 8 months ago

so it means we just need to add a deployment for the sdctl pod ?

hansthienpondt commented 8 months ago

so it means we just need to add a deployment for the sdctl pod ?

Correct, This can be a Deployment, a Pod (sleeping for x amount of time with a restart policy), or a Job.

henderiw commented 8 months ago

I prefer a deployment since this allows to upgrade. Can you do a proposal and we can add it to the artefacts

hansthienpondt commented 8 months ago

Cfr, internal discussion, after some testing I would go for:

kubectl run -ti --rm sdctl --image=ghcr.io/sdcio/sdctl:v0.0.1 --restart=Never --command -- /bin/sh

Will check with @steiler how to get this documented!

hansthienpondt commented 8 months ago

Done