HTML

2021-01-14 01:15

阅读:573

标签:通过   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


评论


亲,登录后才可以留言!