Skip to content

3.4安装gistools-webui

service

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

deployment

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