Skip to content

3.10安装iportal-datainsights

service

kind: Service
apiVersion: v1
metadata:
  name: datainsights-service
  namespace: default
  labels:
    name: datainsights-service
spec:
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80
      nodePort: 30060
  selector:
    app: datainsights
  type: NodePort

deployment

kind: Deployment
apiVersion: apps/v1
metadata:
  name: iportal-datainsights
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: datainsights
  template:
    metadata:
      labels:
        app: datainsights
    spec:
      containers:
        - name: datainsights
          image: >-
            registry.cn-chengdu.aliyuncs.com/liuchenyun/iportal-datainsights:latest
          ports:
            - containerPort: 80
              protocol: TCP
          env:
            - name: IPORTAL_SERVER
              value: http://iportal-service:8090
          resources:
            requests:
              cpu: 10m
              memory: 10Mi
          imagePullPolicy: Always
      restartPolicy: Always
      imagePullSecrets:
        - name: dockercfg-liuchenyun