1
1

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 1 year has passed since last update.

kubernetesとDockerのメモ

Last updated at Posted at 2022-04-03

Docker Hubにログイン

$ docker login localhost:8080;
$ docker tag hoge/hoge:v0.0.1 localhost:8080/hoge/hoge:v0.0.1;
$ docker push localhost:8080/hoge/hoge:v0.0.1;

操作する先を変更する

$ kubectl config get-contexts;
$ kubectl config use-context docker-desktop;

namespaceを作成する

$ kubectl create namespace hoge;

Pod

apply/delete等

# apply
$ kubectl apply pod -f deployment.yaml;

# delete
$ kubectl delete pod -f deployment.yaml;

# get pods;
$ kubectl get pods;

# restart
$ kubectl rollout restart deployment <deployment_name> -n <namespace>;

with kustomization.yaml

$ kubectl apply -f ./;

macのDocker Desktopでkubernetesを動かす

Kubernetesの基礎 〜Docker for Macハンズオン〜 - Qiita

1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?