# Downloadable YAML; this comment prevents Jekyll front matter parsing.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: informer-test
rules:
- apiGroups:
  - ""
  resources:
  - pods
  - services
  verbs:
  - list
  - watch

---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: informer-test
subjects:
- kind: ServiceAccount
  name: informer-test
  namespace: default
  apiGroup: ""
roleRef:
  kind: ClusterRole
  name: informer-test
  apiGroup: rbac.authorization.k8s.io

---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: informer-test
  namespace: default

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: informer-test
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: informer-test
  template:
    metadata:
      annotations:
      labels:
        app: informer-test
    spec:
      serviceAccountName: informer-test
      containers:
      - name: informer-test
        image: xxx.xxx.xxx.xxx:xxxx/informer-test:x.x.x
        imagePullPolicy: Always
      tolerations:
      - key: node-role.kubernetes.io/master
        operator: Exists
        effect: NoSchedule
      - key: node.kubernetes.io/not-ready
        operator: Exists
        effect: NoSchedule