sparse-intern-71089
10/04/2019, 5:44 PMclean-engineer-75963
10/04/2019, 5:44 PMclean-engineer-75963
10/04/2019, 5:45 PMclean-engineer-75963
10/04/2019, 5:46 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",
},
},
)
clean-engineer-75963
10/04/2019, 5:47 PMNone
for "clusterIP"
and got the same result (pretty sure, though, that that's not the right thing to do).clean-engineer-75963
10/04/2019, 5:47 PMclean-engineer-75963
10/04/2019, 5:48 PMclean-engineer-75963
10/04/2019, 5:54 PMselector
. So I guess I just need to create the StatefulSet first.clean-engineer-75963
10/04/2019, 5:55 PMetcd_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