PPT详解:基于Jira的持续交付流水线

---apiVersion: apps/v1kind: DaemonSetmetadata:  name: node-exporter  namespace: kube-system  labels:    k8s-app: node-exporterspec:  selector:    matchLabels:      name: node-exporter  template:    metadata:      labels:        name: node-exporter    spec:      containers:      - name: node-exporter        image: prom/node-exporter:v0.18.1        ports:        - containerPort: 9100          protocol: TCP          name: http---apiVersion: v1kind: Servicemetadata:  labels:    k8s-app: node-exporter  name: node-exporter  namespace: kube-systemspec:  ports:  - name: http    port: 9100    nodePort: 31672    protocol: TCP  type: NodePort  selector:    k8s-app: node-exporter
  • 1.
,
---kind: ServiceapiVersion: v1metadata:  labels:    app: prometheus  name: prometheus  namespace: kube-systemspec:  type: NodePort  ports:  - port: 9090    targetPort: 9090    nodePort: 30003  selector:    app: prometheus
  • 1.
,
apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:  name: prometheusrules:- apiGroups: [""]  resources:  - nodes  - nodes/proxy  - services  - endpoints  - pods  verbs: ["get", "list", "watch"]- apiGroups:  - extensions  resources:  - ingresses  verbs: ["get", "list", "watch"]- nonResourceURLs: ["/metrics"]  verbs: ["get"]---apiVersion: v1kind: ServiceAccountmetadata:  name: prometheus  namespace: kube-system---apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingmetadata:  name: prometheusroleRef:  apiGroup: rbac.authorization.k8s.io  kind: ClusterRole  name: prometheussubjects:- kind: ServiceAccount  name: prometheus  namespace: kube-system
  • 1.
,
apiVersion: apps/v1kind: Deploymentmetadata:  name: grafana-core  namespace: kube-system  labels:    app: grafana    component: corespec:  selector:    matchLabels:      app: grafana  replicas: 1  template:    metadata:      labels:        app: grafana        component: core    spec:      containers:      - image: grafana/grafana:6.5.3        name: grafana-core        imagePullPolicy: IfNotPresent        env:          # The following env variables set up basic auth twith the default admin user and admin password.          - name: GF_AUTH_BASIC_ENABLED            value: "true"          - name: GF_AUTH_ANONYMOUS_ENABLED            value: "false"          # - name: GF_AUTH_ANONYMOUS_ORG_ROLE          #   value: Admin          # does not really work, because of template variables in exported dashboards:          # - name: GF_DASHBOARDS_JSON_ENABLED          #   value: "true"        readinessProbe:          httpGet:            path: /login            port: 3000          # initialDelaySeconds: 30          # timeoutSeconds: 1        volumeMounts:        - name: grafana-persistent-storage          mountPath: /var      volumes:      - name: grafana-persistent-storage        hostPath:          path: /data/devops/grafana          type: Directory
  • 1.
,
apiVersion: v1kind: Servicemetadata:  name: grafana  namespace: kube-system  labels:    app: grafana    component: corespec:  type: NodePort  ports:    - port: 3000      nodePort: 30011  selector:    app: grafana    component: core
  • 1.
QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空