filesystem: "root"
mode: 0644
path: "/etc/kubernetes/manifests/gcp-routes-controller.yaml"
contents:
  inline: |
    apiVersion: v1
    kind: Pod
    metadata:
      name: gcp-routes-controller
      namespace: kube-system
    spec:
      containers:
      - name: gcp-routes-controller
        image: "{{.Images.gcpRoutesControllerKey}}"
        command: ["gcp-routes-controller"]
        args:
        - "run"
        - "--health-check-url={{.Infra.Status.APIServerInternalURL}}/readyz"
        resources:
          requests:
            cpu: 20m
            memory: 50Mi
        terminationMessagePolicy: FallbackToLogsOnError
        securityContext:
          privileged: true
        volumeMounts:
        - mountPath: /rootfs
          name: rootfs
      hostNetwork: true
      hostPID: true
      priorityClassName: system-node-critical
      tolerations:
      - operator: "Exists"
      restartPolicy: Always
      volumes:
      - name: rootfs
        hostPath:
          path: /

