Skip to content

Commit

Permalink
FIX: kube-apiserver config only has single etcd server endpoint (#179)
Browse files Browse the repository at this point in the history
**Before**
```
spec:
  containers:
  - command:
    - kube-apiserver
    - ...
    - --etcd-servers=https://ip-10-1-2-3.k8s.cluster:2379
```
**After**
```
spec:
  containers:
  - command:
    - kube-apiserver
    - ...
    - --etcd-servers=https://ip-10-1-2-3.k8s.cluster:2379,https://ip-10-4-5-6.k8s.cluster:2379,https://ip-10-7-8-9.k8s.cluster:2379
```
```
  • Loading branch information
Downager authored Nov 22, 2023
1 parent 70796f0 commit 5007ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/aws/kube-etcd/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
output "endpoints" {
value = [
for etcd_ip in aws_network_interface.etcd.*.private_ips[0] :
for etcd_ip in flatten(aws_network_interface.etcd.*.private_ips) :
"https://ip-${replace(etcd_ip, ".", "-")}.${local.discovery_service}:${local.client_port}"
]
}
Expand Down

0 comments on commit 5007ca9

Please sign in to comment.