Showing posts with label kubectl. Show all posts
Showing posts with label kubectl. Show all posts

Thursday, June 25, 2020

Kubecrt secret


kubectl get secrets -n [namespace]

kubectl describe secrets/[secret name] -n [namespace]

kubectl get secret [secret name] -n [namespace] -o yaml



apiVersion: v1
data:
  .dockerconfigjson: [base 64 encoded secret data]
kind: Secret
metadata:
  creationTimestamp: [date time]
  name: [secret name]
  namespace: [namespace]
  resourceVersion: [???]
  selfLink: [???}
  uid: [???]
type: [type]


kubectl delete secret [secret name] -n [namespace]

Tuesday, April 28, 2020

kubectl postgres psql

Another issue:
d:\tmp>kubectl run postgres-postgresql-client --rm --tty -i --restart='Never' --names
pace default --image docker.io/postgres:10.6 --env="PGPASSWORD=$POSTGRES_PASSWORD" --
command -- psql --host postgres-postgresql -U postgres -d postgres -p 5432
error: invalid restart policy: 'Never'
See 'kubectl run -h' for help and examples