|
| 1 | +apiVersion: apiextensions.k8s.io/v1beta1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + controller-gen.kubebuilder.io/version: v0.2.5 |
| 6 | + creationTimestamp: null |
| 7 | + name: targetgroupbindings.elbv2.k8s.aws |
| 8 | +spec: |
| 9 | + group: elbv2.k8s.aws |
| 10 | + names: |
| 11 | + kind: TargetGroupBinding |
| 12 | + listKind: TargetGroupBindingList |
| 13 | + plural: targetgroupbindings |
| 14 | + singular: targetgroupbinding |
| 15 | + scope: Namespaced |
| 16 | + validation: |
| 17 | + openAPIV3Schema: |
| 18 | + description: TargetGroupBinding is the Schema for the TargetGroupBinding API |
| 19 | + properties: |
| 20 | + apiVersion: |
| 21 | + description: 'APIVersion defines the versioned schema of this representation |
| 22 | + of an object. Servers should convert recognized schemas to the latest |
| 23 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 24 | + type: string |
| 25 | + kind: |
| 26 | + description: 'Kind is a string value representing the REST resource this |
| 27 | + object represents. Servers may infer this from the endpoint the client |
| 28 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 29 | + type: string |
| 30 | + metadata: |
| 31 | + type: object |
| 32 | + spec: |
| 33 | + description: TargetGroupBindingSpec defines the desired state of TargetGroupBinding |
| 34 | + properties: |
| 35 | + networking: |
| 36 | + description: networking provides the networking setup for ELBV2 LoadBalancer |
| 37 | + to access targets in TargetGroup. |
| 38 | + properties: |
| 39 | + ingress: |
| 40 | + description: List of ingress rules to allow ELBV2 LoadBalancer to |
| 41 | + access targets in TargetGroup. |
| 42 | + items: |
| 43 | + properties: |
| 44 | + from: |
| 45 | + description: List of peers which should be able to access |
| 46 | + the targets in TargetGroup. If unspecified or empty, defaults |
| 47 | + to anywhere. |
| 48 | + items: |
| 49 | + description: NetworkingPeer defines the source/destination |
| 50 | + peer for networking rules. |
| 51 | + properties: |
| 52 | + ipBlock: |
| 53 | + description: IPBlock defines an IPBlock peer. If specified, |
| 54 | + none of the other fields can be set. |
| 55 | + properties: |
| 56 | + cidr: |
| 57 | + description: CIDR is the network CIDR. Both IPV4 |
| 58 | + or IPV6 CIDR are accepted. |
| 59 | + type: string |
| 60 | + required: |
| 61 | + - cidr |
| 62 | + type: object |
| 63 | + securityGroup: |
| 64 | + description: SecurityGroup defines a SecurityGroup peer. |
| 65 | + If specified, none of the other fields can be set. |
| 66 | + properties: |
| 67 | + groupID: |
| 68 | + description: GroupID is the EC2 SecurityGroupID. |
| 69 | + type: string |
| 70 | + required: |
| 71 | + - groupID |
| 72 | + type: object |
| 73 | + type: object |
| 74 | + type: array |
| 75 | + ports: |
| 76 | + description: List of ports which should be made accessible |
| 77 | + on the targets in TargetGroup. If unspecified or empty, |
| 78 | + defaults to all port. |
| 79 | + items: |
| 80 | + properties: |
| 81 | + port: |
| 82 | + description: The port which traffic must match. If unspecified, |
| 83 | + defaults to all port. |
| 84 | + format: int64 |
| 85 | + type: integer |
| 86 | + protocol: |
| 87 | + description: The protocol which traffic must match. |
| 88 | + If unspecified, defaults to all protocol. |
| 89 | + enum: |
| 90 | + - TCP |
| 91 | + - UDP |
| 92 | + type: string |
| 93 | + type: object |
| 94 | + type: array |
| 95 | + type: object |
| 96 | + type: array |
| 97 | + type: object |
| 98 | + serviceRef: |
| 99 | + description: serviceRef is a reference to a Kubernetes Service and ServicePort. |
| 100 | + properties: |
| 101 | + name: |
| 102 | + description: Name is the name of the Service. |
| 103 | + type: string |
| 104 | + port: |
| 105 | + anyOf: |
| 106 | + - type: integer |
| 107 | + - type: string |
| 108 | + description: Port is the port of the ServicePort. |
| 109 | + x-kubernetes-int-or-string: true |
| 110 | + required: |
| 111 | + - name |
| 112 | + - port |
| 113 | + type: object |
| 114 | + targetGroupARN: |
| 115 | + description: targetGroupARN is the Amazon Resource Name (ARN) for the |
| 116 | + TargetGroup. |
| 117 | + type: string |
| 118 | + targetType: |
| 119 | + description: targetType is the TargetType of TargetGroup. If unspecified, |
| 120 | + it will be automatically inferred. |
| 121 | + enum: |
| 122 | + - instance |
| 123 | + - ip |
| 124 | + type: string |
| 125 | + required: |
| 126 | + - serviceRef |
| 127 | + - targetGroupARN |
| 128 | + type: object |
| 129 | + status: |
| 130 | + description: TargetGroupBindingStatus defines the observed state of TargetGroupBinding |
| 131 | + properties: |
| 132 | + observedGeneration: |
| 133 | + description: The generation observed by the TargetGroupBinding controller. |
| 134 | + format: int64 |
| 135 | + type: integer |
| 136 | + type: object |
| 137 | + type: object |
| 138 | + version: v1alpha1 |
| 139 | + versions: |
| 140 | + - name: v1alpha1 |
| 141 | + served: true |
| 142 | + storage: true |
| 143 | +status: |
| 144 | + acceptedNames: |
| 145 | + kind: "" |
| 146 | + plural: "" |
| 147 | + conditions: [] |
| 148 | + storedVersions: [] |
| 149 | +--- |
| 150 | +apiVersion: v1 |
| 151 | +kind: ServiceAccount |
| 152 | +metadata: |
| 153 | + labels: |
| 154 | + control-plane: controller |
| 155 | + name: aws-load-balancer-controller |
| 156 | + namespace: kube-system |
| 157 | +--- |
| 158 | +apiVersion: rbac.authorization.k8s.io/v1 |
| 159 | +kind: Role |
| 160 | +metadata: |
| 161 | + name: aws-load-balancer-controller-leader-election-role |
| 162 | + namespace: kube-system |
| 163 | +rules: |
| 164 | + - apiGroups: |
| 165 | + - "" |
| 166 | + resources: |
| 167 | + - configmaps |
| 168 | + verbs: |
| 169 | + - get |
| 170 | + - list |
| 171 | + - watch |
| 172 | + - create |
| 173 | + - update |
| 174 | + - patch |
| 175 | + - delete |
| 176 | + - apiGroups: |
| 177 | + - "" |
| 178 | + resources: |
| 179 | + - configmaps/status |
| 180 | + verbs: |
| 181 | + - get |
| 182 | + - update |
| 183 | + - patch |
| 184 | + - apiGroups: |
| 185 | + - "" |
| 186 | + resources: |
| 187 | + - events |
| 188 | + verbs: |
| 189 | + - create |
| 190 | +--- |
| 191 | +apiVersion: rbac.authorization.k8s.io/v1 |
| 192 | +kind: ClusterRole |
| 193 | +metadata: |
| 194 | + creationTimestamp: null |
| 195 | + name: aws-load-balancer-controller-role |
| 196 | +rules: |
| 197 | + - apiGroups: |
| 198 | + - "" |
| 199 | + resources: |
| 200 | + - endpoints |
| 201 | + verbs: |
| 202 | + - get |
| 203 | + - list |
| 204 | + - watch |
| 205 | + - apiGroups: |
| 206 | + - "" |
| 207 | + resources: |
| 208 | + - events |
| 209 | + verbs: |
| 210 | + - create |
| 211 | + - delete |
| 212 | + - get |
| 213 | + - list |
| 214 | + - patch |
| 215 | + - update |
| 216 | + - watch |
| 217 | + - apiGroups: |
| 218 | + - "" |
| 219 | + resources: |
| 220 | + - namespaces |
| 221 | + verbs: |
| 222 | + - get |
| 223 | + - list |
| 224 | + - watch |
| 225 | + - apiGroups: |
| 226 | + - "" |
| 227 | + resources: |
| 228 | + - nodes |
| 229 | + verbs: |
| 230 | + - get |
| 231 | + - list |
| 232 | + - watch |
| 233 | + - apiGroups: |
| 234 | + - "" |
| 235 | + resources: |
| 236 | + - pods |
| 237 | + verbs: |
| 238 | + - get |
| 239 | + - list |
| 240 | + - watch |
| 241 | + - apiGroups: |
| 242 | + - "" |
| 243 | + resources: |
| 244 | + - pods/status |
| 245 | + verbs: |
| 246 | + - get |
| 247 | + - patch |
| 248 | + - update |
| 249 | + - apiGroups: |
| 250 | + - "" |
| 251 | + resources: |
| 252 | + - secrets |
| 253 | + verbs: |
| 254 | + - get |
| 255 | + - list |
| 256 | + - watch |
| 257 | + - apiGroups: |
| 258 | + - "" |
| 259 | + resources: |
| 260 | + - services |
| 261 | + verbs: |
| 262 | + - get |
| 263 | + - list |
| 264 | + - patch |
| 265 | + - update |
| 266 | + - watch |
| 267 | + - apiGroups: |
| 268 | + - "" |
| 269 | + resources: |
| 270 | + - services/status |
| 271 | + verbs: |
| 272 | + - get |
| 273 | + - patch |
| 274 | + - update |
| 275 | + - apiGroups: |
| 276 | + - elbv2.k8s.aws |
| 277 | + resources: |
| 278 | + - targetgroupbindings |
| 279 | + verbs: |
| 280 | + - create |
| 281 | + - delete |
| 282 | + - get |
| 283 | + - list |
| 284 | + - patch |
| 285 | + - update |
| 286 | + - watch |
| 287 | + - apiGroups: |
| 288 | + - elbv2.k8s.aws |
| 289 | + resources: |
| 290 | + - targetgroupbindings/status |
| 291 | + verbs: |
| 292 | + - get |
| 293 | + - patch |
| 294 | + - update |
| 295 | + - apiGroups: |
| 296 | + - extensions |
| 297 | + resources: |
| 298 | + - ingresses |
| 299 | + verbs: |
| 300 | + - get |
| 301 | + - list |
| 302 | + - patch |
| 303 | + - update |
| 304 | + - watch |
| 305 | + - apiGroups: |
| 306 | + - extensions |
| 307 | + resources: |
| 308 | + - ingresses/status |
| 309 | + verbs: |
| 310 | + - get |
| 311 | + - patch |
| 312 | + - update |
| 313 | + - apiGroups: |
| 314 | + - networking.k8s.io |
| 315 | + resources: |
| 316 | + - ingresses |
| 317 | + verbs: |
| 318 | + - get |
| 319 | + - list |
| 320 | + - patch |
| 321 | + - update |
| 322 | + - watch |
| 323 | + - apiGroups: |
| 324 | + - networking.k8s.io |
| 325 | + resources: |
| 326 | + - ingresses/status |
| 327 | + verbs: |
| 328 | + - get |
| 329 | + - patch |
| 330 | + - update |
| 331 | +--- |
| 332 | +apiVersion: rbac.authorization.k8s.io/v1 |
| 333 | +kind: RoleBinding |
| 334 | +metadata: |
| 335 | + name: aws-load-balancer-controller-leader-election-rolebinding |
| 336 | + namespace: kube-system |
| 337 | +roleRef: |
| 338 | + apiGroup: rbac.authorization.k8s.io |
| 339 | + kind: Role |
| 340 | + name: aws-load-balancer-controller-leader-election-role |
| 341 | +subjects: |
| 342 | + - kind: ServiceAccount |
| 343 | + name: aws-load-balancer-controller |
| 344 | + namespace: kube-system |
| 345 | +--- |
| 346 | +apiVersion: rbac.authorization.k8s.io/v1 |
| 347 | +kind: ClusterRoleBinding |
| 348 | +metadata: |
| 349 | + name: aws-load-balancer-controller-rolebinding |
| 350 | +roleRef: |
| 351 | + apiGroup: rbac.authorization.k8s.io |
| 352 | + kind: ClusterRole |
| 353 | + name: aws-load-balancer-controller-role |
| 354 | +subjects: |
| 355 | + - kind: ServiceAccount |
| 356 | + name: aws-load-balancer-controller |
| 357 | + namespace: kube-system |
| 358 | +--- |
| 359 | +apiVersion: apps/v1 |
| 360 | +kind: Deployment |
| 361 | +metadata: |
| 362 | + labels: |
| 363 | + control-plane: controller |
| 364 | + name: aws-load-balancer-controller |
| 365 | + namespace: kube-system |
| 366 | +spec: |
| 367 | + replicas: 1 |
| 368 | + selector: |
| 369 | + matchLabels: |
| 370 | + control-plane: controller |
| 371 | + template: |
| 372 | + metadata: |
| 373 | + labels: |
| 374 | + control-plane: controller |
| 375 | + spec: |
| 376 | + containers: |
| 377 | + - args: |
| 378 | + - --cluster-name=your-cluster-name |
| 379 | + command: |
| 380 | + - /controller |
| 381 | + image: amazon/aws-alb-ingress-controller:v2.0.0-rc0 |
| 382 | + name: controller |
| 383 | + resources: |
| 384 | + limits: |
| 385 | + cpu: 100m |
| 386 | + memory: 30Mi |
| 387 | + requests: |
| 388 | + cpu: 100m |
| 389 | + memory: 20Mi |
| 390 | + serviceAccountName: aws-load-balancer-controller |
| 391 | + terminationGracePeriodSeconds: 10 |
0 commit comments