系統運維
1.部署grafana?
大埔網站制作公司哪家好,找創新互聯!從網頁設計、網站建設、微信開發、APP開發、自適應網站建設等網站項目制作,到程序開發,運營維護。創新互聯于2013年開始到現在10年的時間,我們擁有了豐富的建站經驗和運維經驗,來保證我們的工作的順利進行。專注于網站建設就選創新互聯。apiVersion:?apps/v1? kind:?StatefulSet? metadata: ??name:?grafana ??namespace:?kube-system spec: ??serviceName:?grafana ??replicas:?1 ??selector: ????matchLabels: ??????app:?grafana ??template: ????metadata: ??????labels: ????????app:?grafana ????spec: ??????containers: ??????-?name:?grafana ????????image:?grafana/grafana ????????ports: ??????????-?containerPort:?3000 ????????????protocol:?TCP ????????resources: ??????????limits: ????????????cpu:?100m???????????? ????????????memory:?256Mi?????????? ??????????requests: ????????????cpu:?100m???????????? ????????????memory:?256Mi ????????volumeMounts: ??????????-?name:?grafana-data ????????????mountPath:?/var/lib/grafana ????????????subPath:?grafana ??????securityContext: ????????fsGroup:?472 ????????runAsUser:?472 ??volumeClaimTemplates: ??-?metadata: ??????name:?grafana-data ????spec: ??????storageClassName:?managed-nfs-storage? ??????accessModes: ????????-?ReadWriteOnce ??????resources: ????????requests: ??????????storage:?1Gi --- apiVersion:?v1 kind:?Service metadata: ??name:?grafana ??namespace:?kube-system spec: ??type:?NodePort ??ports: ??-?port?:?80 ????targetPort:?3000 ????nodePort:?30007 ??selector: ????app:?grafana
2.storageclass提前創建好的
[root@kubemaster01?grafana]#?kubectl??get?sc NAME??????????????????PROVISIONER??????AGE managed-nfs-storage???fuseim.pri/ifs???4h25m [root@kubemaster01?grafana]#
3.訪問
[root@kubemaster01?grafana]#?kubectl??get?svc???-n??kube-system? NAME???????????????????TYPE????????CLUSTER-IP????????EXTERNAL-IP???PORT(S)??????????AGE grafana????????????????NodePort????169.169.180.248???<none>????????80:30007/TCP?????6m33s
4.訪問 添加數據源 出圖
分享標題:prometheus09-k8s部署grafana
轉載源于:http://vcdvsql.cn/article32/chdcpc.html
成都網站建設公司_創新互聯,為您提供營銷型網站建設、網站收錄、微信公眾號、小程序開發、用戶體驗、移動網站建設
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯