apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: ggoods-hapi
  name: ggoods-hapi
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ggoods-hapi
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: ggoods-hapi
    spec:
      imagePullSecrets:
          - name: regcred
      containers:
      - image: ${DOCKER_REGISTRY}/${IMAGE_NAME_HAPI}:${VERSION}
        imagePullPolicy: "Always"
        name: "ggoods-hapi"
        envFrom:
        - configMapRef:
            name: ggoods-hapi-config
        ports:
        - containerPort: 9090
