1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Kubernetes, GKEで使うコマンドまとめ

Posted at

Configmap

Configmapの作成

$ kubectl create configmap configmapname --from-env-file=.env

Configmapの削除(と再ロード)

読み直しをさせる場合には一度削除して作成、Podの再生成

$ kubectl delete configmap configmapname
$ kubectl create configmap configmapname --from-env-file=.env
$ kubectl apply -f deployment.yaml

Pod

確認など

$ kubectl get pod
NAME                            READY   STATUS    RESTARTS   AGE
oh-my-pod-111111-abcdef  1/1     Running   0          13m
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?