gyliu513 / roadmap

Daily Work
Apache License 2.0
16 stars 13 forks source link

Instana CLI #27

Open gyliu513 opened 3 years ago

gyliu513 commented 3 years ago
root@gyliu-dev21:~# oc get cores.instana.io -n instana-core
NAME           STATUS        VERSION
instana-core   Progressing   209-0
root@gyliu-dev21:~# oc get units.instana.io -n instana-units
NAME           STATUS   VERSION
instana-prod   Error
root@gyliu-dev21:~# oc delete -n instana-core cores.instana.io instana-core
core.instana.io "instana-core" deleted
root@gyliu-dev21:~# oc delete -n instana-units units.instana.io instana-prod
unit.instana.io "instana-prod" deleted
root@gyliu-dev21:~# oc get deploy -n instana-operator
NAME                          READY   UP-TO-DATE   AVAILABLE   AGE
instana-selfhosted-operator   1/1     1            1           10h
root@gyliu-dev21:~# oc delete -n instana-operator deploy instana-selfhosted-operator
deployment.apps "instana-selfhosted-operator" deleted
root@gyliu-dev21:~# oc delete ns instana-operator instana-core instana-units
namespace "instana-operator" deleted
namespace "instana-core" deleted
namespace "instana-units" deleted
root@gyliu-dev21:~# oc delete crd cores.instana.io units.instana.io
customresourcedefinition.apiextensions.k8s.io "cores.instana.io" deleted
customresourcedefinition.apiextensions.k8s.io "units.instana.io" deleted
root@kind-c2:~/instana-utils/sandbox/.work/local/localdev# rm -rf /mnt/metrics/* /mnt/traces/* /mnt/data/* /mnt/log/instana/* /mnt/nfs_share/*
root@kind-c2:~/instana-utils/sandbox/.work/local/localdev# instana datastores init -f ./settings-db.hcl
Setup host environment ✓
Ensure images ⣻ pull containers.instana.io/instana/release/product/cockroachdb:20.2.13
root@kind-c2:~/instana-utils/sandbox/.work/local/localdev# ./instana-209 datastores stop
Stop Instana ✓
kubectl create secret generic regcred --from-file=.dockerconfigjson=/root/.docker/config.json   --type=kubernetes.io/dockerconfigjson -n instana-operator