确认 vSphere with Kubernetes 的基本功能
虽然验证本身是在不久前完成的,但在vSphere 7.0 GA环境中验证了作为容器基础设施平台的vSphere with Kubernetes的基本功能,并进行了总结。
以下是验证环境:
- 
- VMware ESXi 7.0.0.15843807  7.0 GA
 
 
- 
- VMware vCenter Server 7.0.0.15952599  7.0 GA
 
 
- VMware NSX-T Data Center 3.0.0.0.0.15946739  3.0.0
 
vSphere与Kubernetes的结合是什么意思?

- 
- スーパーバイザークラスタ: vSphere with Kubernetesを有効化したクラスタ(ESXi、NSX-T)
 
 
- 
- 制御プレーン仮想マシン: スーパーバイザークラスタに3台展開され、Podを作成する
 
 
- 
- vSphere Pod: vSphere with Kubernetesで作成されるPod
 
 
- 
- Spherelet: ホストのKubetnetes用の追加プロセス
 
 
- CRX: vSphere Podの実行環境
 
vSphere与Kubernetes的环境建置

创建命名空间

创建和确认Pod
在CLI中执行登录到超级监视器集群。
kubectl vsphere login --server=https://<制御プレーンノードのIPアドレス> --vsphere-username <your user account name>
- 名前空間にPodをデプロイし、確認
 
# Podのデプロイ
E:\vsphere-plugin\bin> kubectl apply -f E:\vsphere-plugin\bin\application.yaml --namespace=namespace1
pod/nginx created
# Podの確認
E:\vsphere-plugin\bin> kubectl get pods --namespace=namespace1
NAME    READY   STATUS    RESTARTS   AGE
nginx   0/1     Pending   0          12s
E:\vsphere-plugin\bin>kubectl get pods --namespace=namespace1
NAME    READY   STATUS    RESTARTS   AGE
nginx   1/1     Running   0          79s
- Podへのアクセス
 
E:\vsphere-plugin\bin> kubectl exec -it nginx /bin/bash --namespace=namespace1
root@nginx:/# ls
bin   docker-entrypoint.d   home   media  proc  sbin  tmp
boot  docker-entrypoint.sh  lib    mnt    root  srv   usr
dev   etc                   lib64  opt    run   sys   var
