apiVersion: v1
kind: Service
metadata:
  name: gateway-service
  labels:
    app: integrated-gateway
spec:
  type: NodePort
  ports:
    - port: 30010
      name: server
      targetPort: 30010
      nodePort: 30010
  selector:
    app: integrated-gateway
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: integrated-gateway
spec:
  replicas: 1
  selector:
    matchLabels:
      app: integrated-gateway
  template:
    metadata:
      labels:
        appName: integrated-gateway
        app: integrated-gateway
    spec:
      containers:
        - name: integrated-gateway
          image: "{{ .Values.image.repository }}integrated-gateway"
          imagePullPolicy: Always
          ports:
            - name: http-port
              containerPort: 30010
