apiVersion: apps/v1
kind: Deployment
metadata:
  name: tf-job-operator
  namespace: kubeflow
spec:
  replicas: 1
  selector:
    matchLabels:
      name: tf-job-operator
  template:
    metadata:
      labels:
        name: tf-job-operator
    spec:
      containers:
      - args:
        - --monitoring-port=8443
        env:
        - name: MY_POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: MY_POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        image: gcr.io/kubeflow-images-public/tf-operator:v0.6.0
        name: tf-job-operator
      serviceAccountName: tf-job-operator
