clean-engineer-75963
10/04/2019, 5:44 PMetcd_service = corev1.Service(
"etcd",
metadata={
"name": "etcd",
"namespace": base_namespace.metadata["name"],
},
spec={
"clusterIP": "None",
"ports": [
{
"name": "peers",
"port": 2380,
"protocol": "TCP",
"targetPort": 2380,
},
{
"name": "clients",
"port": 2379,
"protocol": "TCP",
"targetPort": 2379,
},
],
"selector": {
"component": "etcd",
},
},
)
None
for "clusterIP"
and got the same result (pretty sure, though, that that's not the right thing to do).selector
. So I guess I just need to create the StatefulSet first.etcd_service.metadata["name"]
to the StatefulSet's spec.ServiceName to DRY this out, but I guess I can't do that.gorgeous-egg-16927
10/04/2019, 7:30 PMclean-engineer-75963
10/04/2019, 8:17 PMgorgeous-egg-16927
10/04/2019, 8:34 PMcreamy-potato-29402
10/04/2019, 11:28 PMskip-await
annottion to get around this