Question: is there a command to delete everything? kubectl delete all? it seems it didnt delete my secrets

Asked By
karabijavad
Asked At
2017-09-20 21:03:06

Found 15 possible answers.

User Answered At Possible Answer
sleepybrett 2017-09-20 21:05:38 deleting a namespace will delete all the things in the namespace
lax77 2017-09-20 21:07:25 I even tried with editing the statefulset with this definition storage: 1Gi
          requests:
        resources:
          - ReadWriteOnce
        accessModes:
      spec:
          volume.beta.kubernetes.io/storage-class : default
        annotations:
        name: data
    - metadata:
volumeClaimTemplates:
shadoi 2017-09-20 21:09:37 you may need to delete/redeploy the statefulset now that you've got that storageclass in place.
kwladyka 2017-09-20 21:10:17 kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080 so this one create deployment….. i am so confuse about naming…. what exactly this create? Pods and ReplicaSets . So pods are containers an ReplicaSets control number of pods. This is what deployments do and what kubectl run do. Am i miss something? How to remove what i created? This create service or pod…. pod is already craeted, so this time create service? What this line do? So now: kubectl expose deployment hello-minikube --type=NodePort
shadoi 2017-09-20 21:10:55 definitely seems like it should be working though
lax77 2017-09-20 21:10:56 I did do delete and re-deploy hmm ok
swade1987 2017-09-20 21:18:46 what docker daemon options are people using for their k8s clusters (r.e https://docs.docker.com/engine/admin/logging/json-file/#usage ) ?
philstrong 2017-09-20 21:30:42 Wondering how most people do certificate mgmt in k8s clusters. e.g. SSL cert per service store as secrets, mounted by service pods Kops generates a CA on cluster creation, is that OK to use and sign certs with?
mrballcb 2017-09-20 21:33:14 Honestly, I’m just an idiot. I thought that mere existence of a pod in namespace foo created a ‘pod.foo.svc.cluster.local’ local DNS entry. Apparently that’s only if you also create a service with the same name as the pod. Thanks for the feedback.
cburdick 2017-09-20 21:34:47 @philstrong vault's latest release apparently does this really well, but I haven't tried it. heard good things https://www.hashicorp.com/blog/hashicorp-vault-0-8-3/
philstrong 2017-09-20 21:35:46 yeah been looking at Vault replaces secrets to an extent it clearly does way more than cert mgmt
lax77 2017-09-20 21:36:09 tried deleting statefulset, pvc, service and re-deployed. Still no luck :disappointed:
philstrong 2017-09-20 21:36:15 though k8s backend perhaps uses them
mrballcb 2017-09-20 21:36:23 @philstrong I’m doing it very poorly :disappointed: configmap mounted as volume. Hang me like a pinata, it’s ok.
erkules 2017-09-20 21:39:05 @philstrong I'm not shure I get you right. Running an own CA for every installation is fine.

Related Questions