Fix mistakes
This commit is contained in:
parent
164729db54
commit
c6c14b697d
|
@ -93,27 +93,27 @@ curl $(minikube service hello-minikube --url)
|
|||
Hostname: hello-minikube-7c77b68cff-8wdzq
|
||||
|
||||
Pod Information:
|
||||
-no pod information available-
|
||||
-no pod information available-
|
||||
|
||||
Server values:
|
||||
server_version=nginx: 1.13.3 - lua: 10008
|
||||
server_version=nginx: 1.13.3 - lua: 10008
|
||||
|
||||
Request Information:
|
||||
client_address=172.17.0.1
|
||||
method=GET
|
||||
real path=/
|
||||
query=
|
||||
request_version=1.1
|
||||
request_scheme=http
|
||||
request_uri=http://192.168.99.100:8080/
|
||||
client_address=172.17.0.1
|
||||
method=GET
|
||||
real path=/
|
||||
query=
|
||||
request_version=1.1
|
||||
request_scheme=http
|
||||
request_uri=http://192.168.99.100:8080/
|
||||
|
||||
Request Headers:
|
||||
accept=*/*
|
||||
host=192.168.99.100:30674
|
||||
user-agent=curl/7.47.0
|
||||
accept=*/*
|
||||
host=192.168.99.100:30674
|
||||
user-agent=curl/7.47.0
|
||||
|
||||
Request Body:
|
||||
-no body in request-
|
||||
-no body in request-
|
||||
```
|
||||
|
||||
```shell
|
||||
|
|
|
@ -52,7 +52,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
|
||||
2. Now, you can interact with your cluster using kubectl. For more information, see [Interacting with Your Cluster](#interacting-with-your-cluster).
|
||||
|
||||
Let's create a Kubernetes Deployment using an existing image named `echoserver`, which is a simple HTTP server and expose it on port 8080 using `--port`.
|
||||
Let’s create a Kubernetes Deployment using an existing image named `echoserver`, which is a simple HTTP server and expose it on port 8080 using `--port`.
|
||||
```shell
|
||||
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
|
||||
```
|
||||
|
@ -72,24 +72,24 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
```
|
||||
4. The `hello-minikube` Pod is now launched but you have to wait until the Pod is up before accessing it via the exposed Service.
|
||||
|
||||
Check if the Pod is up and running:
|
||||
```shell
|
||||
kubectl get pod
|
||||
```
|
||||
If the output shows the `STATUS` as `ContainerCreating`, the Pod is still being created:
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
If the output shows the `STATUS` as `Running`, the Pod is now up and running:
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
Check if the Pod is up and running:
|
||||
```shell
|
||||
kubectl get pod
|
||||
```
|
||||
If the output shows the `STATUS` as `ContainerCreating`, the Pod is still being created:
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
If the output shows the `STATUS` as `Running`, the Pod is now up and running:
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
5. Get the URL of the exposed Service to view the Service details:
|
||||
```shell
|
||||
minikube service hello-minikube --url
|
||||
```
|
||||
```shell
|
||||
minikube service hello-minikube --url
|
||||
```
|
||||
6. To view the details of your local cluster, copy and paste the URL you got as the output, on your browser.
|
||||
|
||||
The output is similar to this:
|
||||
|
@ -119,7 +119,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
Request Body:
|
||||
-no body in request-
|
||||
```
|
||||
If you no longer want the Service and cluster to run, you can delete them.
|
||||
If you no longer want the Service and cluster to run, you can delete them.
|
||||
7. Delete the `hello-minikube` Service:
|
||||
```shell
|
||||
kubectl delete services hello-minikube
|
||||
|
@ -145,7 +145,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
Stopping "minikube"...
|
||||
"minikube" stopped.
|
||||
```
|
||||
For more information, see [Stopping a Cluster](#stopping-a-cluster).
|
||||
For more information, see [Stopping a Cluster](#stopping-a-cluster).
|
||||
10. Delete the local Minikube cluster:
|
||||
```shell
|
||||
minikube delete
|
||||
|
|
|
@ -89,7 +89,7 @@ Before using `--driver=none`, consult [this documentation](https://minikube.sigs
|
|||
Minikube also supports a `vm-driver=podman` similar to the Docker driver. Podman run as superuser privilege (root user) is the best way to ensure that your containers have full access to any feature available on your system.
|
||||
|
||||
{{< caution >}}
|
||||
The `podman` driver requires running the containers as root because regular user accounts don't have full access to all operating system features that their containers might need to run.
|
||||
The `podman` driver requires running the containers as root because regular user accounts don’t have full access to all operating system features that their containers might need to run.
|
||||
{{< /caution >}}
|
||||
|
||||
### Install Minikube using a package
|
||||
|
@ -134,11 +134,11 @@ Make sure you have kubectl installed. You can install kubectl according to the i
|
|||
|
||||
If you do not already have a hypervisor installed, install one of these now:
|
||||
|
||||
* [HyperKit](https://github.com/moby/hyperkit)
|
||||
• [HyperKit](https://github.com/moby/hyperkit)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
* [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
• [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
|
||||
### Install Minikube
|
||||
The easiest way to install Minikube on macOS is using [Homebrew](https://brew.sh):
|
||||
|
@ -170,9 +170,9 @@ Make sure you have kubectl installed. You can install kubectl according to the i
|
|||
|
||||
If you do not already have a hypervisor installed, install one of these now:
|
||||
|
||||
* [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
• [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
{{< note >}}
|
||||
Hyper-V can run on three versions of Windows 10: Windows 10 Enterprise, Windows 10 Professional, and Windows 10 Education.
|
||||
|
|
|
@ -5,7 +5,7 @@ content_template: templates/concept
|
|||
|
||||
{{% capture overview %}}
|
||||
|
||||
Minikube est un outil facilitant l'exécution locale de Kubernetes.
|
||||
Minikube est un outil facilitant l’exécution locale de Kubernetes.
|
||||
Minikube exécute un cluster Kubernetes à nœud unique dans une machine virtuelle (VM) de votre ordinateur portable pour les utilisateurs qui souhaitent essayer Kubernetes ou le développer au quotidien.
|
||||
|
||||
{{% /capture %}}
|
||||
|
@ -53,7 +53,7 @@ Suivez les étapes ci-dessous pour commencer et explorer Minikube.
|
|||
2. Vous pouvez maintenant interagir avec votre cluster à l'aide de kubectl.
|
||||
Pour plus d'informations, voir [Interagir avec votre cluster.](#interacting-with-your-cluster).
|
||||
|
||||
Créons un déploiement Kubernetes en utilisant une image existante nommée `echoserver`, qui est un serveur HTTP, et exposez-la sur le port 8080 à l'aide de `--port`.
|
||||
Créons un déploiement Kubernetes en utilisant une image existante nommée `echoserver`, qui est un serveur HTTP, et exposez-la sur le port 8080 à l’aide de `--port`.
|
||||
|
||||
```shell
|
||||
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
|
||||
|
@ -107,7 +107,7 @@ Suivez les étapes ci-dessous pour commencer et explorer Minikube.
|
|||
minikube service hello-minikube --url
|
||||
```
|
||||
|
||||
6. Pour afficher les détails de votre cluster local, copiez et collez l'URL que vous avez obtenue en tant que sortie dans votre navigateur.
|
||||
6. Pour afficher les détails de votre cluster local, copiez et collez l’URL que vous avez obtenue en tant que sortie dans votre navigateur.
|
||||
|
||||
Le résultat est similaire à ceci:
|
||||
|
||||
|
@ -306,7 +306,7 @@ minikube start \
|
|||
#### Utiliser des images locales en réutilisant le démon Docker
|
||||
|
||||
Lorsque vous utilisez une seule machine virtuelle pour Kubernetes, il est utile de réutiliser le démon Docker intégré de Minikube.
|
||||
La réutilisation du démon intégré signifie que vous n'avez pas besoin de créer un registre Docker sur votre ordinateur hôte et d'y insérer l'image.
|
||||
La réutilisation du démon intégré signifie que vous n’avez pas besoin de créer un registre Docker sur votre ordinateur hôte et d’y insérer l’image.
|
||||
Au lieu de cela, vous pouvez créer le même démon Docker que Minikube, ce qui accélère les expériences locales.
|
||||
|
||||
{{< note >}}
|
||||
|
@ -327,7 +327,7 @@ docker ps
|
|||
```
|
||||
|
||||
{{< note >}}
|
||||
Sur Centos 7, Docker peut signaler l'erreur suivante:
|
||||
Sur Centos 7, Docker peut signaler l’erreur suivante:
|
||||
|
||||
```text
|
||||
Could not read CA certificate "/etc/docker/ca.pem": open /etc/docker/ca.pem: no such file or directory
|
||||
|
@ -433,7 +433,7 @@ Minikube supporte les [PersistentVolumes](/docs/concepts/storage/persistent-volu
|
|||
Ces volumes persistants sont mappés vers un répertoire à l'intérieur de la VM Minikube.
|
||||
|
||||
La machine virtuelle Minikube démarre dans un fichier tmpfs, de sorte que la plupart des répertoires ne seront pas conservés lors des redémarrages avec (`minikube stop`).
|
||||
Toutefois, Minikube est configuré pour conserver les fichiers stockés dans les répertoires d'hôte suivants:
|
||||
Toutefois, Minikube est configuré pour conserver les fichiers stockés dans les répertoires d’hôte suivants:
|
||||
|
||||
* `/data`
|
||||
* `/var/lib/minikube`
|
||||
|
@ -489,7 +489,7 @@ Minikube crée une machine virtuelle qui inclut Kubernetes et un démon Docker.
|
|||
Lorsque Kubernetes tente de planifier des conteneurs à l'aide de Docker, le démon Docker peut nécessiter un accès réseau externe pour extraire les conteneurs.
|
||||
|
||||
Si vous êtes derrière un proxy HTTP, vous devrez peut-être fournir à Docker les paramètres de proxy.
|
||||
Pour ce faire, transmettez les variables d'environnement requises en tant qu'indicateurs lors de la création de `minikube start`.
|
||||
Pour ce faire, transmettez les variables d’environnement requises en tant qu’indicateurs lors de la création de `minikube start`.
|
||||
|
||||
Par exemple:
|
||||
|
||||
|
@ -522,8 +522,8 @@ Pour plus d'informations sur Minikube, voir la [proposition](https://git.k8s.io/
|
|||
* **Guide de développement**: Voir [CONTRIBUTING.md](https://git.k8s.io/minikube/CONTRIBUTING.md) pour avoir un aperçu de comment envoyer des pull requests.
|
||||
* **Construire Minikube**: Pour obtenir des instructions sur la création / test de Minikube à partir des sources, voir le [guide de build](https://git.k8s.io/minikube/docs/contributors/build_guide.md).
|
||||
* **Ajout d'une nouvelle dépendance**: Pour savoir comment ajouter une nouvelle dépendance à Minikube, voir la section [guide d'ajout de dépendances](https://git.k8s.io/minikube/docs/contributors/adding_a_dependency.md).
|
||||
* **Ajout d'un nouvel addon**: Pour savoir comment ajouter un nouvel addon pour Minikube, reportez-vous au [Ajout d'un addon](https://git.k8s.io/minikube/docs/contributors/adding_an_addon.md).
|
||||
* **MicroK8s**: Les utilisateurs de Linux qui souhaitent éviter d'exécuter une machine virtuelle peuvent envisager [MicroK8s](https://microk8s.io/).
|
||||
* **Ajout d'un nouvel addon**: Pour savoir comment ajouter un nouvel addon pour Minikube, reportez-vous au [Ajout d’un addon](https://git.k8s.io/minikube/docs/contributors/adding_an_addon.md).
|
||||
* **MicroK8s**: Les utilisateurs de Linux qui souhaitent éviter d’exécuter une machine virtuelle peuvent envisager [MicroK8s](https://microk8s.io/).
|
||||
|
||||
## Communauté
|
||||
|
||||
|
|
|
@ -31,9 +31,6 @@ Minikubeはローカル環境でKubernetesを簡単に実行するためのツ
|
|||
これはMinikubeの使い方の簡単なデモです。
|
||||
もしVMドライバを変更したい場合は、適切な `--driver=xxx` フラグを `minikube start` に設定してください。Minikubeは以下のドライバをサポートしています。
|
||||
|
||||
* vmware ([installation du pilote](https://minikube.sigs.k8s.io/docs/reference/drivers/vmware/)) (VMware unified driver)
|
||||
* parallels ([installation du pilote](https://minikube.sigs.k8s.io/docs/reference/drivers/parallels/))
|
||||
|
||||
* virtualbox
|
||||
* vmwarefusion
|
||||
* docker (EXPERIMENTAL)
|
||||
|
@ -94,27 +91,27 @@ curl $(minikube service hello-minikube --url)
|
|||
Hostname: hello-minikube-7c77b68cff-8wdzq
|
||||
|
||||
Pod Information:
|
||||
-no pod information available-
|
||||
-no pod information available-
|
||||
|
||||
Server values:
|
||||
server_version=nginx: 1.13.3 - lua: 10008
|
||||
server_version=nginx: 1.13.3 - lua: 10008
|
||||
|
||||
Request Information:
|
||||
client_address=172.17.0.1
|
||||
method=GET
|
||||
real path=/
|
||||
query=
|
||||
request_version=1.1
|
||||
request_scheme=http
|
||||
request_uri=http://192.168.99.100:8080/
|
||||
client_address=172.17.0.1
|
||||
method=GET
|
||||
real path=/
|
||||
query=
|
||||
request_version=1.1
|
||||
request_scheme=http
|
||||
request_uri=http://192.168.99.100:8080/
|
||||
|
||||
Request Headers:
|
||||
accept=*/*
|
||||
host=192.168.99.100:30674
|
||||
user-agent=curl/7.47.0
|
||||
accept=*/*
|
||||
host=192.168.99.100:30674
|
||||
user-agent=curl/7.47.0
|
||||
|
||||
Request Body:
|
||||
-no body in request-
|
||||
-no body in request-
|
||||
```
|
||||
|
||||
```shell
|
||||
|
|
|
@ -71,9 +71,9 @@ kubectlがインストールされていることを確認してください。
|
|||
|
||||
ハイパーバイザーがまだインストールされていない場合は、これらのいずれかをインストールしてください:
|
||||
|
||||
* [KVM](https://www.linux-kvm.org/)、ただしQEMUも使っているもの
|
||||
• [KVM](https://www.linux-kvm.org/)、ただしQEMUも使っているもの
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
{{< note >}}
|
||||
minikubeは、VMではなくホストでKubernetesコンポーネントを実行する`--driver=none`オプションもサポートしています。
|
||||
|
@ -116,11 +116,11 @@ kubectlがインストールされていることを確認してください。
|
|||
|
||||
ハイパーバイザーがまだインストールされていない場合は、これらのいずれかをインストールしてください:
|
||||
|
||||
* [HyperKit](https://github.com/moby/hyperkit)
|
||||
• [HyperKit](https://github.com/moby/hyperkit)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
* [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
• [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
|
||||
### Minikubeのインストール
|
||||
[Homebrew](https://brew.sh)を使うことでmacOSにMinikubeを簡単にインストールできます:
|
||||
|
@ -153,9 +153,9 @@ kubectlがインストールされていることを確認してください。
|
|||
|
||||
ハイパーバイザーがまだインストールされていない場合は、これらのいずれかをインストールしてください:
|
||||
|
||||
* [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
• [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
{{< note >}}
|
||||
Hyper-Vは、Windows 10 Enterprise、Windows 10 Professional、Windows 10 Educationの3つのバージョンのWindows 10で実行できます。
|
||||
|
|
|
@ -68,24 +68,24 @@ Minikube는 다음과 같은 쿠버네티스의 기능을 제공한다.
|
|||
```
|
||||
4. `hello-minikube` 파드가 이제 시작되었지만 노출된 서비스를 통해서 접근하기 전에 파드가 뜨기를 기다려야한다.
|
||||
|
||||
파드가 떠서 구동되고 있는지 확인한다.
|
||||
```shell
|
||||
kubectl get pod
|
||||
```
|
||||
출력에서 `STATUS`가 `ContainerCreating`으로 나타나는 경우, 파드는 아직 생성 중이다.
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
출력에서 `STATUS`가 `Running`으로 나타나는 경우, 파드는 이제 떠서 기동 중이다.
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
파드가 떠서 구동되고 있는지 확인한다.
|
||||
```shell
|
||||
kubectl get pod
|
||||
```
|
||||
출력에서 `STATUS`가 `ContainerCreating`으로 나타나는 경우, 파드는 아직 생성 중이다.
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
출력에서 `STATUS`가 `Running`으로 나타나는 경우, 파드는 이제 떠서 기동 중이다.
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
5. 서비스 상세를 보기 위해서 노출된 서비스의 URL을 얻는다.
|
||||
```shell
|
||||
minikube service hello-minikube --url
|
||||
```
|
||||
```shell
|
||||
minikube service hello-minikube --url
|
||||
```
|
||||
6. 로컬 클러스터의 상세를 보기위해서, 출력에서 얻은 URL을 브라우저에 복사해서 붙여 넣는다.
|
||||
|
||||
출력은 다음과 비슷하다.
|
||||
|
@ -141,7 +141,7 @@ Minikube는 다음과 같은 쿠버네티스의 기능을 제공한다.
|
|||
Stopping "minikube"...
|
||||
"minikube" stopped.
|
||||
```
|
||||
보다 상세한 정보는 [클러스터 중지하기](#클러스터-중지하기)를 참조한다.
|
||||
보다 상세한 정보는 [클러스터 중지하기](#클러스터-중지하기)를 참조한다.
|
||||
10. 로컬 Minikube 클러스터 삭제
|
||||
```shell
|
||||
minikube delete
|
||||
|
@ -151,7 +151,7 @@ Minikube는 다음과 같은 쿠버네티스의 기능을 제공한다.
|
|||
Deleting "minikube" ...
|
||||
The "minikube" cluster has been deleted.
|
||||
```
|
||||
보다 상세한 정보는 [Deleting a cluster](#클러스터-삭제하기)를 참조한다.
|
||||
보다 상세한 정보는 [Deleting a cluster](#클러스터-삭제하기)를 참조한다.
|
||||
|
||||
## 클러스터 관리하기
|
||||
|
||||
|
|
|
@ -70,9 +70,9 @@ kubectl이 설치되었는지 확인한다. kubectl은 [kubectl 설치하고 설
|
|||
|
||||
하이퍼바이저를 설치하지 않다면, 운영체제에 적합한 하이퍼바이저를 지금 설치한다.
|
||||
|
||||
* [KVM](https://www.linux-kvm.org/), 또한 QEMU를 사용한다
|
||||
• [KVM](https://www.linux-kvm.org/), 또한 QEMU를 사용한다
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
Minikube는 쿠버네티스 컴포넌트를 VM이 아닌 호스트에서도 동작하도록 `--driver=none` 옵션도 지원한다.
|
||||
이 드라이버를 사용하려면 [도커](https://www.docker.com/products/docker-desktop) 와 Linux 환경이 필요하지만, 하이퍼바이저는 필요하지 않다.
|
||||
|
@ -128,11 +128,11 @@ kubectl이 설치되었는지 확인한다. kubectl은 [kubectl 설치하고 설
|
|||
|
||||
하이퍼바이저를 설치하지 않았다면, 다음 중 하나를 지금 설치한다.
|
||||
|
||||
* [HyperKit](https://github.com/moby/hyperkit)
|
||||
• [HyperKit](https://github.com/moby/hyperkit)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
* [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
• [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
|
||||
### Minikube 설치
|
||||
가장 쉽게 맥OS에 Minikube를 설치하는 방법은 [Homebrew](https://brew.sh)를 이용하는 것이다.
|
||||
|
@ -164,9 +164,9 @@ kubectl이 설치되었는지 확인한다. kubectl은 [kubectl 설치하고 설
|
|||
|
||||
하이퍼바이저가 설치 안 되어 있다면 아래중 하나를 지금 설치한다.
|
||||
|
||||
* [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
• [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
{{< note >}}
|
||||
Hyper-V는 다음 세 버전의 윈도우 10에서 실행할 수 있다. Windows 10 Enterprise, Windows 10 Professional, Windows 10 Education.
|
||||
|
|
|
@ -83,30 +83,30 @@ Minikube поддерживает следующие возможности Kube
|
|||
|
||||
4. Под (Pod) `hello-minikube` теперь запущен, но нужно подождать, пока он начнёт функционировать, прежде чем обращаться к нему.
|
||||
|
||||
Проверьте, что под работает:
|
||||
|
||||
```shell
|
||||
kubectl get pod
|
||||
```
|
||||
Проверьте, что под работает:
|
||||
|
||||
```shell
|
||||
kubectl get pod
|
||||
```
|
||||
|
||||
Если в столбце вывода `STATUS` выводится `ContainerCreating`, значит под все еще создается:
|
||||
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
|
||||
Если в столбце `STATUS` указано `Running`, то под теперь в рабочем состоянии:
|
||||
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
5. Узнайте URL-адрес открытого (exposed) сервиса, чтобы просмотреть подробные сведения о сервисе:
|
||||
|
||||
```shell
|
||||
minikube service hello-minikube --url
|
||||
```
|
||||
```shell
|
||||
minikube service hello-minikube --url
|
||||
```
|
||||
6. Чтобы ознакомиться с подробной информацией о локальном кластере, скопируйте и откройте полученный из вывода команды на предыдущем шаге URL-адрес в браузере.
|
||||
|
||||
Вывод будет примерно следующим:
|
||||
|
@ -170,7 +170,7 @@ Minikube поддерживает следующие возможности Kube
|
|||
Stopping "minikube"...
|
||||
"minikube" stopped.
|
||||
```
|
||||
Подробности смотрите в разделе [Остановка кластера](#остановка-кластера).
|
||||
Подробности смотрите в разделе [Остановка кластера](#остановка-кластера).
|
||||
10. Удалите локальный кластер Minikube:
|
||||
```shell
|
||||
minikube delete
|
||||
|
@ -182,7 +182,7 @@ Minikube поддерживает следующие возможности Kube
|
|||
Deleting "minikube" ...
|
||||
The "minikube" cluster has been deleted.
|
||||
```
|
||||
Подробности смотрите в разделе [Удаление кластера](#удаление-кластера).
|
||||
Подробности смотрите в разделе [Удаление кластера](#удаление-кластера).
|
||||
|
||||
## Управление кластером
|
||||
|
||||
|
|
|
@ -68,9 +68,9 @@ Hyper-V Requirements: A hypervisor has been detected. Features required for
|
|||
|
||||
Если у вас ещё не установлен гипервизор, установите один из них:
|
||||
|
||||
* [KVM](https://www.linux-kvm.org/), который также использует QEMU
|
||||
• [KVM](https://www.linux-kvm.org/), который также использует QEMU
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
Minikube также поддерживает опцию `--driver=none`, которая запускает компоненты Kubernetes на хосте, а не на виртуальной машине.
|
||||
Для использования этого драйвера требуется только [Docker](https://www.docker.com/products/docker-desktop) и Linux, но не гипервизор.
|
||||
|
@ -128,11 +128,11 @@ brew install minikube
|
|||
|
||||
Если у вас ещё не установлен гипервизор, установите один из них:
|
||||
|
||||
* [HyperKit](https://github.com/moby/hyperkit)
|
||||
• [HyperKit](https://github.com/moby/hyperkit)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
* [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
• [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
|
||||
### Установка Minikube
|
||||
Простейший способ установить Minikube в macOS — использовать [Homebrew](https://brew.sh):
|
||||
|
@ -164,9 +164,9 @@ sudo mv minikube /usr/local/bin
|
|||
|
||||
Если у вас ещё не установлен гипервизор, установите один из них:
|
||||
|
||||
* [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
• [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
{{< note >}}
|
||||
Hyper-V может работать в трёх версиях Windows 10: Windows 10 Enterprise, Windows 10 Professional и Windows 10 Education.
|
||||
|
|
|
@ -70,9 +70,9 @@ Hyper-V Requirements: A hypervisor has been detected. Features required for
|
|||
|
||||
Nếu bạn chưa cài đặt Hypervisor, hãy cài đặt một trong những phần mềm sau đây:
|
||||
|
||||
* [KVM](https://www.linux-kvm.org/), sử dụng QEMU
|
||||
• [KVM](https://www.linux-kvm.org/), sử dụng QEMU
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
{{< note >}}
|
||||
Minikube cũng hỗ trợ tùy chọn `--driver=none` để chạy các thành phần của Kubernetes ngay trên máy chủ chứ không phải trong một VM. Sử dụng driver này yêu cầu [Docker](https://www.docker.com/products/docker-desktop) và môi trường Linux chứ không phải một Hypervisor. Bạn nên sử dụng cài đặt apt của docker từ [Docker](https://www.docker.com/products/docker-desktop) khi sử dụng non driver. Cài đặt snap của docker không hoạt động với minikube.
|
||||
|
@ -118,11 +118,11 @@ brew install minikube
|
|||
|
||||
Nếu bạn chưa cài đặt Hypervisor, hãy cài đặt một trong những phần mềm sau đây:
|
||||
|
||||
* [HyperKit](https://github.com/moby/hyperkit)
|
||||
• [HyperKit](https://github.com/moby/hyperkit)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
* [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
• [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
|
||||
### Cài đặt Minikube
|
||||
Cách đơn giản nhất để cài đặt Minikube trên macOS là sử dụng [Homebrew](https://brew.sh):
|
||||
|
@ -154,9 +154,9 @@ sudo mv minikube /usr/local/bin
|
|||
|
||||
Nếu bạn chưa cài đặt Hypervisor, hãy cài đặt một trong những phần mềm sau đây:
|
||||
|
||||
* [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
• [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
{{< note >}}
|
||||
Hyper-V có thể chạy trên 3 phiên bản khác nhau của Windows 10: Windows 10 Enterprise, Windows 10 Professional, và Windows 10 Education.
|
||||
|
|
|
@ -105,7 +105,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
-->
|
||||
|
||||
<!--
|
||||
Let's create a Kubernetes Deployment using an existing image named `echoserver`, which is a simple HTTP server and expose it on port 8080 using `--port`.
|
||||
Let’s create a Kubernetes Deployment using an existing image named `echoserver`, which is a simple HTTP server and expose it on port 8080 using `--port`.
|
||||
-->
|
||||
让我们使用名为 `echoserver` 的镜像创建一个 Kubernetes Deployment,并使用 `--port` 在端口 8080 上暴露服务。`echoserver` 是一个简单的 HTTP 服务器。
|
||||
|
||||
|
@ -151,29 +151,29 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
-->
|
||||
|
||||
<!--
|
||||
Check if the Pod is up and running:
|
||||
Check if the Pod is up and running:
|
||||
-->
|
||||
检查 Pod 是否启动并运行:
|
||||
|
||||
```shell
|
||||
kubectl get pod
|
||||
```
|
||||
```shell
|
||||
kubectl get pod
|
||||
```
|
||||
<!--
|
||||
If the output shows the `STATUS` as `ContainerCreating`, the Pod is still being created:
|
||||
If the output shows the `STATUS` as `ContainerCreating`, the Pod is still being created:
|
||||
-->
|
||||
如果输出显示 `STATUS` 为 `ContainerCreating`,则表明 Pod 仍在创建中:
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
<!--
|
||||
If the output shows the `STATUS` as `Running`, the Pod is now up and running:
|
||||
-->
|
||||
如果输出显示 `STATUS` 为 `Running`,则 Pod 现在正在运行:
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
|
||||
5. 获取暴露 Service 的 URL 以查看 Service 的详细信息:
|
||||
|
||||
|
@ -181,9 +181,9 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
Get the URL of the exposed Service to view the Service details:
|
||||
-->
|
||||
|
||||
```shell
|
||||
minikube service hello-minikube --url
|
||||
```
|
||||
```shell
|
||||
minikube service hello-minikube --url
|
||||
```
|
||||
|
||||
6. 要查看本地集群的详细信息,请在浏览器中复制粘贴并访问上一步骤输出的 URL。
|
||||
|
||||
|
@ -223,7 +223,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
-no body in request-
|
||||
```
|
||||
<!--
|
||||
If you no longer want the Service and cluster to run, you can delete them.
|
||||
If you no longer want the Service and cluster to run, you can delete them.
|
||||
-->
|
||||
如果您不再希望运行 Service 和集群,则可以删除它们。
|
||||
|
||||
|
@ -282,7 +282,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
"minikube" stopped.
|
||||
```
|
||||
<!--
|
||||
For more information, see [Stopping a Cluster](#stopping-a-cluster).
|
||||
For more information, see [Stopping a Cluster](#stopping-a-cluster).
|
||||
-->
|
||||
有关更多信息,请参阅[停止集群](#stopsing-a-cluster)。
|
||||
|
||||
|
@ -305,7 +305,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
|
|||
The "minikube" cluster has been deleted.
|
||||
```
|
||||
<!--
|
||||
For more information, see [Deleting a cluster](#deleting-a-cluster).
|
||||
For more information, see [Deleting a cluster](#deleting-a-cluster).
|
||||
-->
|
||||
有关更多信息,请参阅[删除集群](#deletion-a-cluster)。
|
||||
|
||||
|
|
|
@ -140,9 +140,9 @@ If you do not already have a hypervisor installed, install one of these now:
|
|||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
-->
|
||||
|
||||
* [KVM](https://www.linux-kvm.org/),也使用了 QEMU
|
||||
• [KVM](https://www.linux-kvm.org/),也使用了 QEMU
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
<!--
|
||||
Minikube also supports a `--driver=none` option that runs the Kubernetes components on the host and not in a VM.
|
||||
|
@ -178,7 +178,7 @@ Minikube 还支持另外一个类似于 Docker 驱动的方式 `driver=podman`
|
|||
|
||||
{{< caution >}}
|
||||
<!--
|
||||
The `podman` driver requires running the containers as root because regular user accounts don't have full access to all operating system features that their containers might need to run.
|
||||
The `podman` driver requires running the containers as root because regular user accounts don’t have full access to all operating system features that their containers might need to run.
|
||||
-->
|
||||
`Podman` 驱动方式需要以 root 用户身份运行容器,因为普通用户帐户没有足够的权限使用容器运行可能需要的操作系统上的所有特性。
|
||||
{{< /caution >}}
|
||||
|
@ -261,11 +261,11 @@ If you do not already have a hypervisor installed, install one of these now:
|
|||
|
||||
如果你还没有安装 hypervisor,请选择以下方式之一进行安装:
|
||||
|
||||
* [HyperKit](https://github.com/moby/hyperkit)
|
||||
• [HyperKit](https://github.com/moby/hyperkit)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
* [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
• [VMware Fusion](https://www.vmware.com/products/fusion)
|
||||
|
||||
<!--
|
||||
### Install Minikube
|
||||
|
@ -324,9 +324,9 @@ If you do not already have a hypervisor installed, install one of these now:
|
|||
|
||||
如果你还没有安装 hypervisor,请选择以下方式之一进行安装:
|
||||
|
||||
* [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
• [Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
|
||||
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
• [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
|
||||
{{< note >}}
|
||||
<!--
|
||||
|
|
Loading…
Reference in New Issue