apiVersion: apps/v1
kind: Deployment
metadata:
  name: node-port-controller
spec:
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      application: node-port-controller
  template:
    metadata:
      labels:
        application: node-port-controller
    spec:
      serviceAccountName: nodeport-controller-sa
      containers:
      - name: node-port-controller
        image: 163538056407.dkr.ecr.us-west-2.amazonaws.com/nodeportcontroller
        imagePullPolicy: Always
        livenessProbe:
          httpGet:
            path: /healthz
            port: 8080
          timeoutSeconds: 25
          initialDelaySeconds: 30
