码迷,mamicode.com
首页 > Web开发 > 详细

HTML

时间:2020-08-09 15:36:52      阅读:87      评论:0      收藏:0      [点我收藏+]

标签:通过   com   eve   org   mail   列表   boot   扩展   xhtml   

docker pull quay.io/bitnami/heapster:1.5.4
docker tag c359b95ad38b harbor.rongbiz.cn/public/heapster:v1.5.4
docker push harbor.rongbiz.cn/public/heapster:v1.5.4

vi /data/k8s-yaml/dashboard/heapster/rbac.yaml

apiVersion: v1
kind: ServiceAccount
metadata:
  name: heapster
  namespace: kube-system
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: heapster
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: system:heapster
subjects:
- kind: ServiceAccount
  name: heapster
  namespace: kube-system
vi /data/k8s-yaml/dashboard/heapster/deployment.yaml

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: heapster
  namespace: kube-system
spec:
  replicas: 1
  template:
    metadata:
      labels:
        task: monitoring
        k8s-app: heapster
    spec:
      serviceAccountName: heapster
      containers:
      - name: heapster
        image: harbor.rongbiz.cn/public/heapster:v1.5.4
        imagePullPolicy: IfNotPresent
        command:
        - /opt/bitnami/heapster/bin/heapster
        - --source=kubernetes:https://kubernetes.default
vi /data/k8s-yaml/dashboard/heapster/svc.yaml

apiVersion: v1
kind: Service
metadata:
  labels:
    task: monitoring
    # For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons)
    # If you are NOT using this as an addon, you should comment out this line.
    kubernetes.io/cluster-service: ‘true‘
    kubernetes.io/name: Heapster
  name: heapster
  namespace: kube-system
spec:
  ports:
  - port: 80
    targetPort: 8082
  selector:
    k8s-app: heapster
kubectl apply -f http://k8s-yaml.rongbiz.cn/dashboard/heapster/rbac.yaml
kubectl apply -f http://k8s-yaml.rongbiz.cn/dashboard/heapster/deployment.yaml
kubectl apply -f http://k8s-yaml.rongbiz.cn/dashboard/heapster/svc.yaml

HTML

标签:通过   com   eve   org   mail   列表   boot   扩展   xhtml   

原文地址:https://www.cnblogs.com/m0488/p/13462520.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!