apiVersion: apps/v1
kind: Deployment
metadata:
  name: tarantool-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      name: tarantool-operator
  template:
    metadata:
      labels:
        name: tarantool-operator
    spec:
      serviceAccountName: tarantool-operator
      containers:
        - name: tarantool-operator
          image: tarantool/tarantool-operator:0.0.2
          command:
          - tarantool-operator
          imagePullPolicy: IfNotPresent
          env:
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: tarantool-operator
              value: "tarantool-operator"
