apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: ml-pipeline
    app.kubernetes.io/component: ml-pipeline
    app.kubernetes.io/name: kubeflow-pipelines
  name: ml-pipeline
  namespace: kubeflow
spec:
  selector:
    matchLabels:
      app: ml-pipeline
      app.kubernetes.io/component: ml-pipeline
      app.kubernetes.io/name: kubeflow-pipelines
  template:
    metadata:
      labels:
        app: ml-pipeline
        app.kubernetes.io/component: ml-pipeline
        app.kubernetes.io/name: kubeflow-pipelines
    spec:
      containers:
      - env:
        - name: ARTIFACT_BUCKET
          valueFrom:
            configMapKeyRef:
              key: artifact_bucket
              name: kfp-tekton-config
        - name: ARTIFACT_ENDPOINT
          valueFrom:
            configMapKeyRef:
              key: artifact_endpoint
              name: kfp-tekton-config
        - name: ARTIFACT_ENDPOINT_SCHEME
          valueFrom:
            configMapKeyRef:
              key: artifact_endpoint_scheme
              name: kfp-tekton-config
        - name: ARCHIVE_LOGS
          valueFrom:
            configMapKeyRef:
              key: archive_logs
              name: kfp-tekton-config
        - name: TRACK_ARTIFACTS
          valueFrom:
            configMapKeyRef:
              key: track_artifacts
              name: kfp-tekton-config
        - name: STRIP_EOF
          valueFrom:
            configMapKeyRef:
              key: strip_eof
              name: kfp-tekton-config
        - name: ARTIFACT_SCRIPT
          valueFrom:
            configMapKeyRef:
              key: artifact_script
              name: kfp-tekton-config
        - name: ARTIFACT_IMAGE
          valueFrom:
            configMapKeyRef:
              key: artifact_image
              name: kfp-tekton-config
        - name: INJECT_DEFAULT_SCRIPT
          valueFrom:
            configMapKeyRef:
              key: inject_default_script
              name: kfp-tekton-config
        - name: KUBEFLOW_USERID_HEADER
          valueFrom:
            configMapKeyRef:
              key: userid-header
              name: kubeflow-config-bk4bc7m928
        - name: KUBEFLOW_USERID_PREFIX
          valueFrom:
            configMapKeyRef:
              key: userid-prefix
              name: kubeflow-config-bk4bc7m928
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: OBJECTSTORECONFIG_SECURE
          value: "false"
        - name: OBJECTSTORECONFIG_BUCKETNAME
          valueFrom:
            configMapKeyRef:
              key: bucketName
              name: pipeline-install-config-2829cc67f8
        - name: DBCONFIG_USER
          valueFrom:
            secretKeyRef:
              key: username
              name: mysql-secret-fd5gktm75t
        - name: DBCONFIG_PASSWORD
          valueFrom:
            secretKeyRef:
              key: password
              name: mysql-secret-fd5gktm75t
        - name: DBCONFIG_DBNAME
          valueFrom:
            configMapKeyRef:
              key: pipelineDb
              name: pipeline-install-config-2829cc67f8
        - name: DBCONFIG_HOST
          valueFrom:
            configMapKeyRef:
              key: dbHost
              name: pipeline-install-config-2829cc67f8
        - name: DBCONFIG_PORT
          valueFrom:
            configMapKeyRef:
              key: dbPort
              name: pipeline-install-config-2829cc67f8
        - name: OBJECTSTORECONFIG_ACCESSKEY
          valueFrom:
            secretKeyRef:
              key: accesskey
              name: mlpipeline-minio-artifact
        - name: OBJECTSTORECONFIG_SECRETACCESSKEY
          valueFrom:
            secretKeyRef:
              key: secretkey
              name: mlpipeline-minio-artifact
        envFrom:
        - configMapRef:
            name: pipeline-api-server-config-f4t72426kt
        image: docker.io/aipipeline/api-server:0.4.0
        imagePullPolicy: IfNotPresent
        livenessProbe:
          exec:
            command:
            - wget
            - -q
            - -S
            - -O
            - '-'
            - http://localhost:8888/apis/v1beta1/healthz
          initialDelaySeconds: 3
          periodSeconds: 5
          timeoutSeconds: 2
        name: ml-pipeline-api-server
        ports:
        - containerPort: 8888
          name: http
        - containerPort: 8887
          name: grpc
        readinessProbe:
          exec:
            command:
            - wget
            - -q
            - -S
            - -O
            - '-'
            - http://localhost:8888/apis/v1beta1/healthz
          initialDelaySeconds: 3
          periodSeconds: 5
          timeoutSeconds: 2
      serviceAccountName: ml-pipeline
