apiVersion: apps/v1
kind: Deployment
metadata:
  name: js-function-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      name: js-function-operator
  template:
    metadata:
      labels:
        name: js-function-operator
    spec:
      serviceAccountName: js-function-operator
      containers:
        - name: js-function-operator
          image: docker.io/oscf/js-function-operator:v0.0.1
          command:
          - js-function-operator
          imagePullPolicy: Always
          resources:
            limits:
              memory: "200Mi"
              cpu: "1"
            requests:
              memory: "100Mi"
              cpu: 500m
          env:
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: OPERATOR_NAME
              value: "js-function-operator"
