| 1 | # A Kubernetes cluster on this machine: every node is a Docker container. |
| 2 | # kind create cluster --config deploy/kind/cluster.yaml |
| 3 | kind: Cluster |
| 4 | apiVersion: kind.x-k8s.io/v1alpha4 |
| 5 | name: payments |
| 6 | nodes: |
| 7 | - role: control-plane |
| 8 | # The gateway's NodePort, on this machine's port 8080, for this machine |
| 9 | # only. In a cloud, a load balancer does this job. |
| 10 | extraPortMappings: |
| 11 | - containerPort: 30080 |
| 12 | hostPort: 8080 |
| 13 | listenAddress: 127.0.0.1 |
| 14 | # Two workers, so replicas can spread out, and a node can go away. |
| 15 | - role: worker |
| 16 | - role: worker |