Skip to content

3.11安装iportal-earth-v2

service

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

deployment

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