Skip to content

Commit

Permalink
[id] Make image registry hostname more obvious in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Arhell committed Jan 27, 2024
1 parent 6b183db commit 3e48d01
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Isi dari `token` tidak dirinci di sini.
- Membuat sebuah imagePullSecret, seperti yang dijelaskan pada [Menentukan ImagePullSecret pada Pod](/id/docs/concepts/containers/images/#tentukan-imagepullsecrets-pada-sebuah-pod).

```shell
kubectl create secret docker-registry myregistrykey --docker-server=DUMMY_SERVER \
kubectl create secret docker-registry myregistrykey --docker-server=<registry name> \
--docker-username=DUMMY_USERNAME --docker-password=DUMMY_DOCKER_PASSWORD \
--docker-email=DUMMY_DOCKER_EMAIL
```
Expand Down Expand Up @@ -250,7 +250,7 @@ kubectl replace serviceaccount default -f ./sa.yaml
Ketika Pod baru dibuat dalam Namespace yang sedang aktif dan menggunakan ServiceAccount, Pod baru akan memiliki _field_ `spec.imagePullSecrets` yang ditentukan secara otomatis:

```shell
kubectl run nginx --image=nginx --restart=Never
kubectl run nginx --image=<registry name>/nginx --restart=Never
kubectl get pod nginx -o=jsonpath='{.spec.imagePullSecrets[0].name}{"\n"}'
```

Expand Down

0 comments on commit 3e48d01

Please sign in to comment.