| giolekva | 892a4e2 | 2020-04-27 16:46:22 +0400 | [diff] [blame^] | 1 | oapiVersion: apiextensions.k8s.io/v1beta1 |
| 2 | kind: CustomResourceDefinition |
| 3 | metadata: |
| 4 | name: gateways.argoproj.io |
| 5 | spec: |
| 6 | group: argoproj.io |
| 7 | names: |
| 8 | kind: Gateway |
| 9 | listKind: GatewayList |
| 10 | plural: gateways |
| 11 | singular: gateway |
| 12 | shortNames: |
| 13 | - gw |
| 14 | scope: Namespaced |
| 15 | version: "v1alpha1" |
| 16 | --- |
| 17 | apiVersion: apiextensions.k8s.io/v1beta1 |
| 18 | kind: CustomResourceDefinition |
| 19 | metadata: |
| 20 | name: sensors.argoproj.io |
| 21 | spec: |
| 22 | group: argoproj.io |
| 23 | names: |
| 24 | kind: Sensor |
| 25 | listKind: SensorList |
| 26 | plural: sensors |
| 27 | singular: sensor |
| 28 | shortNames: |
| 29 | - sn |
| 30 | scope: Namespaced |
| 31 | version: "v1alpha1" |
| 32 | --- |
| 33 | apiVersion: apiextensions.k8s.io/v1beta1 |
| 34 | kind: CustomResourceDefinition |
| 35 | metadata: |
| 36 | name: eventsources.argoproj.io |
| 37 | spec: |
| 38 | group: argoproj.io |
| 39 | scope: Namespaced |
| 40 | names: |
| 41 | kind: EventSource |
| 42 | plural: eventsources |
| 43 | singular: eventsource |
| 44 | listKind: EventSourceList |
| 45 | shortNames: |
| 46 | - es |
| 47 | version: "v1alpha1" |
| 48 | --- |
| 49 | # apiVersion: v1 |
| 50 | # kind: Namespace |
| 51 | # metadata: |
| 52 | # name: argo-events |
| 53 | --- |
| 54 | apiVersion: v1 |
| 55 | kind: ServiceAccount |
| 56 | metadata: |
| 57 | name: argo-events-sa |
| 58 | namespace: kube-system |
| 59 | --- |
| 60 | apiVersion: rbac.authorization.k8s.io/v1 |
| 61 | kind: RoleBinding |
| 62 | metadata: |
| 63 | name: argo-events-role-binding |
| 64 | roleRef: |
| 65 | apiGroup: rbac.authorization.k8s.io |
| 66 | kind: Role |
| 67 | name: argo-events-role |
| 68 | subjects: |
| 69 | - kind: ServiceAccount |
| 70 | name: argo-events-sa |
| 71 | namespace: kube-system |
| 72 | --- |
| 73 | apiVersion: rbac.authorization.k8s.io/v1 |
| 74 | kind: Role |
| 75 | metadata: |
| 76 | name: argo-events-role |
| 77 | rules: |
| 78 | - apiGroups: |
| 79 | - argoproj.io |
| 80 | verbs: |
| 81 | - create |
| 82 | - delete |
| 83 | - deletecollection |
| 84 | - get |
| 85 | - list |
| 86 | - patch |
| 87 | - update |
| 88 | - watch |
| 89 | resources: |
| 90 | - workflows |
| 91 | - workflows/finalizers |
| 92 | - workflowtemplates |
| 93 | - workflowtemplates/finalizers |
| 94 | - gateways |
| 95 | - gateways/finalizers |
| 96 | - sensors |
| 97 | - sensors/finalizers |
| 98 | - eventsources |
| 99 | - eventsources/finalizers |
| 100 | - apiGroups: |
| 101 | - "" |
| 102 | resources: |
| 103 | - pods |
| 104 | - pods/exec |
| 105 | - configmaps |
| 106 | - secrets |
| 107 | - services |
| 108 | - events |
| 109 | - persistentvolumeclaims |
| 110 | verbs: |
| 111 | - create |
| 112 | - get |
| 113 | - list |
| 114 | - watch |
| 115 | - update |
| 116 | - patch |
| 117 | - delete |
| 118 | - apiGroups: |
| 119 | - "batch" |
| 120 | resources: |
| 121 | - jobs |
| 122 | verbs: |
| 123 | - create |
| 124 | - get |
| 125 | - list |
| 126 | - watch |
| 127 | - update |
| 128 | - patch |
| 129 | - delete |
| 130 | - apiGroups: |
| 131 | - "apps" |
| 132 | resources: |
| 133 | - deployments |
| 134 | verbs: |
| 135 | - create |
| 136 | - get |
| 137 | - list |
| 138 | - watch |
| 139 | - update |
| 140 | - patch |
| 141 | - delete |
| 142 | --- |
| 143 | apiVersion: v1 |
| 144 | kind: ConfigMap |
| 145 | metadata: |
| 146 | name: gateway-controller-configmap |
| 147 | namespace: kube-system |
| 148 | data: |
| 149 | config: | |
| 150 | instanceID: argo-events |
| 151 | namespace: kube-system |
| 152 | --- |
| 153 | # The gateway-controller listens for changes on the gateway CRD and creates gateway |
| 154 | apiVersion: apps/v1 |
| 155 | kind: Deployment |
| 156 | metadata: |
| 157 | name: gateway-controller |
| 158 | namespace: kube-system |
| 159 | spec: |
| 160 | replicas: 1 |
| 161 | selector: |
| 162 | matchLabels: |
| 163 | app: gateway-controller |
| 164 | template: |
| 165 | metadata: |
| 166 | labels: |
| 167 | app: gateway-controller |
| 168 | spec: |
| 169 | serviceAccountName: argo-events-sa |
| 170 | containers: |
| 171 | - name: gateway-controller |
| 172 | image: argoproj/gateway-controller:v0.13.0 |
| 173 | imagePullPolicy: Always |
| 174 | env: |
| 175 | - name: NAMESPACE |
| 176 | valueFrom: |
| 177 | fieldRef: |
| 178 | fieldPath: metadata.namespace |
| 179 | - name: CONTROLLER_CONFIG_MAP |
| 180 | value: gateway-controller-configmap |
| 181 | --- |
| 182 | # The sensor-controller configmap includes configuration information for the sensor-controller |
| 183 | # To watch sensors created in different namespace than the controller is deployed in, remove the namespace: kube-system. |
| 184 | # Similarly to watch sensors created in specific namespace, change to namespace: <your_namespace> |
| 185 | apiVersion: v1 |
| 186 | kind: ConfigMap |
| 187 | metadata: |
| 188 | name: sensor-controller-configmap |
| 189 | namespace: kube-system |
| 190 | data: |
| 191 | config: | |
| 192 | instanceID: argo-events |
| 193 | namespace: kube-system |
| 194 | --- |
| 195 | apiVersion: apps/v1 |
| 196 | kind: Deployment |
| 197 | metadata: |
| 198 | name: sensor-controller |
| 199 | namespace: kube-system |
| 200 | spec: |
| 201 | replicas: 1 |
| 202 | selector: |
| 203 | matchLabels: |
| 204 | app: sensor-controller |
| 205 | template: |
| 206 | metadata: |
| 207 | labels: |
| 208 | app: sensor-controller |
| 209 | spec: |
| 210 | serviceAccountName: argo-events-sa |
| 211 | containers: |
| 212 | - name: sensor-controller |
| 213 | image: argoproj/sensor-controller:v0.13.0 |
| 214 | imagePullPolicy: Always |
| 215 | env: |
| 216 | - name: NAMESPACE |
| 217 | valueFrom: |
| 218 | fieldRef: |
| 219 | fieldPath: metadata.namespace |
| 220 | - name: CONTROLLER_CONFIG_MAP |
| 221 | value: sensor-controller-configmap |