apiVersion: apps/v1
kind: Deployment
metadata:
  name: etcd-operator
  namespace: example-com
spec:
  replicas: 1
  selector:
    matchLabels:
      kos-app: kos-etcd-operator
  template:
    metadata:
      labels:
        kos-app: kos-etcd-operator
      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "8080"
    spec:
      securityContext:
        runAsUser: 1000
        fsGroup: 1000
      nodeSelector:
        kos-role/netcd-op: "true"
      containers:
      - name: etcd-operator
        image: quay.io/coreos/etcd-operator:v0.9.4
        command:
        - etcd-operator
        # Uncomment to act for resources in all namespaces. More information in doc/user/clusterwide.md
        #- -cluster-wide
        env:
        - name: MY_POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: MY_POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
