成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Kubernetes安裝dashboard的步驟

這篇文章主要講解了“Kubernetes安裝dashboard的步驟”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“Kubernetes安裝dashboard的步驟”吧!

這篇文章主要講解了“Kubernetes安裝dashboard的步驟”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“Kubernetes安裝dashboard的步驟”吧!

1. 準備工作

在成都網(wǎng)站制作、成都網(wǎng)站建設(shè)、外貿(mào)營銷網(wǎng)站建設(shè)中從網(wǎng)站色彩、結(jié)構(gòu)布局、欄目設(shè)置、關(guān)鍵詞群組等細微處著手,突出企業(yè)的產(chǎn)品/服務(wù)/品牌,幫助企業(yè)鎖定精準用戶,提高在線咨詢和轉(zhuǎn)化,使成都網(wǎng)站營銷成為有效果、有回報的無錫營銷推廣。創(chuàng)新互聯(lián)專業(yè)成都網(wǎng)站建設(shè)十載了,客戶滿意度97.8%,歡迎成都創(chuàng)新互聯(lián)客戶聯(lián)系。

參看CentOS7配置Kubernetes(K8S)集群 這里使用k8s版本為1.5.2

2. 準備yaml# Copyright 2015 Google Inc. All Rights Reserved.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at##     http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.# Configuration to deploy release version of the Dashboard UI.## Example usage: kubectl create -f <this_file>kind: DeploymentapiVersion: extensions/v1beta1metadata:  labels:    app: kubernetes-dashboard    version: latest  name: kubernetes-dashboard  namespace: kube-systemspec:  replicas: 1  selector:    matchLabels:      app: kubernetes-dashboard  template:    metadata:      labels:        app: kubernetes-dashboard      # Comment the following annotation if Dashboard must not be deployed on master      annotations:        scheduler.alpha.kubernetes.io/tolerations: |          [            {              "key": "dedicated",              "operator": "Equal",              "value": "master",              "effect": "NoSchedule"            }          ]    spec:      containers:      - name: kubernetes-dashboard        image: docker.io/googlecontainer/kubernetes-dashboard-amd64:v1.6.1        imagePullPolicy: Always        ports:        - containerPort: 9090          protocol: TCP        args:          # Uncomment the following line to manually specify Kubernetes API server Host          # If not specified, Dashboard will attempt to auto discover the API server and connect          # to it. Uncomment only if the default does not work.          - --apiserver-host=192.168.0.51:8080        livenessProbe:          httpGet:            path: /            port: 9090          initialDelaySeconds: 30          timeoutSeconds: 30---kind: ServiceapiVersion: v1metadata:  labels:    app: kubernetes-dashboard  name: kubernetes-dashboard  namespace: kube-systemspec:  type: NodePort  ports:  - port: 80    targetPort: 9090  selector:    app: kubernetes-dashboard3. 啟動kubectl apply -f k8s-dashboard.yaml4. 注意事項4.1 kubelet#### kubernetes kubelet (minion) config# The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces)KUBELET_ADDRESS="--address=0.0.0.0"# The port for the info server to serve on# KUBELET_PORT="--port=10250"# You may leave this blank to use the actual hostnameKUBELET_HOSTNAME="--hostname-override=192.168.0.51"# location of the api-serverKUBELET_API_SERVER="--api-servers=http://192.168.0.51:8080"# pod infrastructure containerKUBELET_POD_INFRA_CONTAINER="--pod-infra-container-image=docker.io/openshift/origin-pod:latest"# Add your own!KUBELET_ARGS=""

將這里的ip地址修改為0.0.0.0和192.168.0.51(master地址),這里將pod-infra指向本地鏡像pod-infra-container-image=docker.io/openshift/origin-pod:latest,需要在master和slave端都配置一遍

4.2 apiserver#### kubernetes system config## The following values are used to configure the kube-apiserver## The address on the local server to listen to.KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0"# The port on the local server to listen on.# KUBE_API_PORT="--port=8080"# Port minions listen on# KUBELET_PORT="--kubelet-port=10250"# Comma separated list of nodes in the etcd clusterKUBE_ETCD_SERVERS="--etcd-servers=http://192.168.0.51:2379"# Address range to use for servicesKUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"# default admission control policies#KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ResourceQuota"# Add your own!KUBE_API_ARGS=""

這里去除賬號驗證

4.3 pod-infrastructure

安裝Pod時需要用到這個鏡像,提前準備,不然會因為GW的原因下不到

[root@k8s-master elk]# docker search pod-infrastructureINDEX       NAME                                                DESCRIPTION                                     STARS     OFFICIAL   AUTOMATEDdocker.io   docker.io/openshift/origin-pod                      The pod infrastructure image for OpenShift 3    8docker.io   docker.io/davinkevin/podcast-server                 Container around the Podcast-Server Applic...   5docker.io   docker.io/infrastructureascode/aws-cli              Containerized AWS CLI on alpine to avoid r...   4                    [OK]docker.io   docker.io/newrelic/infrastructure                   Public image for New Relic Infrastructure.      4docker.io   docker.io/infrastructureascode/uwsgi                uWSGI application server                        2                    [OK]docker.io   docker.io/infrastructureascode/serf                 A tiny Docker image with HashiCorp Serf us...   1                    [OK]docker.io   docker.io/mosquitood/k8s-rhel7-pod-infrastructure                                                   1docker.io   docker.io/podigg/podigg-lc-hobbit                   A HOBBIT dataset generator wrapper for PoDiGG   1                    [OK]docker.io   docker.io/stefanprodan/podinfo                      Kubernetes multi-arch pod info                  1docker.io   docker.io/tianyebj/pod-infrastructure               registry.access.redhat.com/rhel7/pod-infra...   1docker.io   docker.io/w564791/pod-infrastructure                latest                                          1docker.io   docker.io/grapeupci/infrastructure                                                                  0docker.io   docker.io/infrastructureascode/hello-world          A tiny "Hello World" web server with a hea...   0                    [OK]docker.io   docker.io/jqka/pod-infrastructure                   redhat pod                                      0                    [OK]docker.io   docker.io/ocpqe/hello-pod                           Copy form docker.io/deshuai/hello-pod:latest    0docker.io   docker.io/oudi/pod-infrastructure                   pod-infrastructure                              0                    [OK]docker.io   docker.io/sebastianhutter/podcaster                 python script to download podcasts https:/...   0                    [OK]docker.io   docker.io/shadowalker911/pod-infrastructure                                                         0docker.io   docker.io/statemood/pod-infrastructure              Automated build from registry.access.redha...   0                    [OK]docker.io   docker.io/tfgco/podium                              Podium is a blazing-fast player ranking se...   0docker.io   docker.io/trancong/pod2consul                       register pod with consul                        0docker.io   docker.io/tundradotcom/podyn                        dockerized Podyn                                0docker.io   docker.io/vistalba/podget                           Podget Docker with rename included.             0                    [OK]docker.io   docker.io/xplenty/rhel7-pod-infrastructure          registry.access.redhat.com/rhel7/pod-infra...   0docker.io   docker.io/zengshaoyong/pod-infrastructure           pod-infrastructure                              0                    [OK]

下載一個鏡像

[root@k8s-master elk]# docker pull docker.io/openshift/origin-pod

同樣的原因,提前準備dashboard的鏡像

[root@k8s-master es]# docker search kubernetes-dashboardINDEX       NAME                                                            DESCRIPTION                                     STARS     OFFICIAL   AUTOMATEDdocker.io   docker.io/mritd/kubernetes-dashboard-amd64                      kubernetes image kubernetes-dashboard-amd64     23                   [OK]docker.io   docker.io/brainqi/kubernetes-dashboard-amd64                    full from gcr.io/google_containers/kuberne...   6docker.io   docker.io/ist0ne/kubernetes-dashboard-amd64                     https://gcr.io/google_containers/kubernete...   6                    [OK]docker.io   docker.io/k8scn/kubernetes-dashboard-amd64                      kubernetes-dashboard-amd64 image                6                    [OK]docker.io   docker.io/kubernetesdashboarddev/kubernetes-dashboard-amd64                                                     6docker.io   docker.io/siriuszg/kubernetes-dashboard-amd64                   gcr.io/google_containers/kubernetes-dashbo...   6                    [OK]docker.io   docker.io/mirrorgooglecontainers/kubernetes-dashboard-amd64                                                     4docker.io   docker.io/larry0208/kubernetes-dashboard-amd64-google           full from gcr.io/google_containers/kuberne...   3docker.io   docker.io/4admin2root/kubernetes-dashboard-amd64                gcr.io/google_containers/kubernetes-dashbo...   1                    [OK]docker.io   docker.io/kubernetesonarm/dashboard                                                                             1docker.io   docker.io/lhcalibur/kubernetes-dashboard-amd64                  kubernetes-dashboard-amd64                      1                    [OK]docker.io   docker.io/zounengren/kubernetes-dashboard-amd64                 kubernetes dashboard 1.8.0 for kubernetes ...   1docker.io   docker.io/cokabug/kubernetes-dashboard-amd64                    kubernetes-dashboard-amd64                      0                    [OK]docker.io   docker.io/gysan/kubernetes-dashboard-amd64                      gcr.io/google-containers/kubernetes-dashbo...   0                    [OK]docker.io   docker.io/huanwei/kubernetes-dashboard-amd64                    kubernetes-dashboard-amd64                      0                    [OK]docker.io   docker.io/kubernetesdashboarddev/kubernetes-dashboard-arm                                                       0docker.io   docker.io/kubernetesdashboarddev/kubernetes-dashboard-arm64                                                     0docker.io   docker.io/kubernetesdashboarddev/kubernetes-dashboard-ppc64le                                                   0docker.io   docker.io/kubernetesdashboarddev/kubernetes-dashboard-s390x                                                     0docker.io   docker.io/linkmancheng/kubernetes-dashboard-amd64               kubernetes-dashboard-amd64                      0                    [OK]docker.io   docker.io/lolop82/kubernetes-dashboard                                                                          0docker.io   docker.io/rainf/kubernetes-dashboard-amd64                      kubernetes-dashboard-amd64:v1.5.1               0                    [OK]docker.io   docker.io/steady1211/kubernetes-dashboard-amd64                 kubernetes-dashboard-amd64 v1.6.1               0                    [OK]docker.io   docker.io/tristan129/kubernetes-dashboard-amd64                 mirror from gcr.io/google_containers/kuber...   0docker.io   docker.io/visenzek8s/kubernetes-dashboard-amd64                                                                 0

這里我選擇第一個鏡像

docker pull docker.io/mritd/kubernetes-dashboard-amd64

鏡像準備,在master和slave端都進行準備

5. 進入界面

通過http://192.168.0.51:8080/ui進入頁面,即主機ip和apiserver端口

本文標題:Kubernetes安裝dashboard的步驟
本文鏈接:http://jinyejixie.com/article30/djcso.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、ChatGPT、網(wǎng)頁設(shè)計公司、搜索引擎優(yōu)化、移動網(wǎng)站建設(shè)、定制開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站建設(shè)
河南省| 乌鲁木齐县| 土默特左旗| 长宁县| 丹棱县| 紫金县| 古交市| 武夷山市| 吴桥县| 来宾市| 灵宝市| 基隆市| 望谟县| 来宾市| 穆棱市| 涞水县| 迭部县| 随州市| 句容市| 彰化市| 罗田县| 阳泉市| 西乌珠穆沁旗| 岗巴县| 华坪县| 成武县| 宜兰县| 睢宁县| 益阳市| 离岛区| 上犹县| 西城区| 龙海市| 乐都县| 定西市| 陈巴尔虎旗| 湟中县| 微博| 应城市| 华宁县| 呼图壁县|