<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## 鏡像的準備 * [超大庫](https://hub.docker.com/r/mritd/) * #### 拉取google指定鏡像`kubernetes-dashboard-amd64` > 周所周知的情況,一堵墻導致一些鏡像是無法直接下載的,提示如下類似信息。 ```powershell $sudo docker pull gcr.io/google_containers/kubernetes-dashboard-amd64:v1.5.1 Trying to pull repository gcr.io/google_containers/kubernetes-dashboard-amd64 ... Pulling repository gcr.io/google_containers/kubernetes-dashboard-amd64 Network timed out while trying to connect to http://gcr.io/v1/repositories/google_containers/kubernetes-dashboard-amd64/images. You may want to check your internet connection or if you are behind a proxy. ``` * #### 尋找到能在dockerhub下載到的可替換鏡像 ```powershell $ sudo docker pull mritd/kubernetes-dashboard-amd64 ``` > 下載后的鏡像tag如下 ![](https://box.kancloud.cn/60c9c928199a106091e7d99dd92cd623_1273x365.png) ## yaml文件 * vi `dashboard-deployment.yaml` ![](https://box.kancloud.cn/69f8a25ee904deef80c30054676480a4_1004x637.png) ```yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: kubernetes-dashboard-latest namespace: kube-system spec: replicas: 1 template: metadata: labels: k8s-app: kubernetes-dashboard version: latest kubernetes.io/cluster-service: "true" spec: containers: - name: kubernetes-dashboard image: docker.io/mritd/kubernetes-dashboard-amd64 resources: limits: cpu: 100m memory: 50Mi requests: cpu: 100m memory: 50Mi ports: - containerPort: 9090 args: - --apiserver-host=http://192.168.33.103:8080 livenessProbe: httpGet: path: / port: 9090 initialDelaySeconds: 30 timeoutSeconds: 30 ``` * vi `dashboard-service.yaml` ![](https://box.kancloud.cn/5725e89f8cff97fe1d766d118e34ce64_559x261.png) ![選區_077](/home/hzy/file/notes/images/選區_077.png) ```yaml apiVersion: v1 kind: Service metadata: name: kubernetes-dashboard namespace: kube-system labels: k8s-app: kubernetes-dashboard kubernetes.io/cluster-service: "true" spec: selector: k8s-app: kubernetes-dashboard ports: - port: 80 targetPort: 9090 ``` ## 啟動服務 ```powershell # deployment $ kubectl create -f dashboard-deployment.yaml deployment "kubernetes-dashboard-latest" created # 因為yaml文件指定的namespace是kube-system,因此得指定。 $ kubectl get pod -n kube-system NAME READY STATUS RESTARTS AGE kubernetes-dashboard-latest-1910469837-1rdff 1/1 Running 0 54s # service $ kubectl create -f dashboard-service.yaml service "kubernetes-dashboard" created $ kubectl get services -n kube-system NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes-dashboard 10.254.21.182 <none> 80/TCP 9s ``` ## 訪問UI > http://ip-addr:8080/ui ![](https://box.kancloud.cn/645bfb307f988b35297e2c32674fe273_1863x961.png) ![選區_078](/home/hzy/file/notes/images/選區_078.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看