Open Jean-Baptiste-Lasselle opened 6 months ago
Oh I think I know:
gcloud
cli i can use the part that discovers the VM instance public ephemeral IP Let's just test without digging too much, if the cloudflare ddns client will be able to discover my public ip...: https://github.com/decoder-leco/plateforme/issues/5
Writing a kubernetes controller quickly :
kubectl apply -f my_crd.yaml
and the kind in my crd is a new IP addres for my VM like kind: GcpEphemeralIP
, and a label or anntation of that CRD will give the Gcp IP address, or whatever, yet i would need a one-2-one association between external IP assigned by metallb and resources of kind: GcpEphemeralIP
. Now, the question is, that my job which discovers the ephemeral IP every five minutes would need to run the kubectl apply -f my_crd.yaml
. Okay now my operator would econcile like this : as soon as a kind: GcpEphemeralIP
resource is updated/created, the operator changes one annotation or label on the jupyterhhub proxy service, annotation or label which needs to be completely ignored by jupyterhub. Well if i want my operator to be dummy, it could just update le label or annotation of any small pod running for itself, i just need my operator to watch some deployment and adjust anything o he's happy about reconciling the state of something, i will find whatever that will be. it could simple by a dummy server giving the public address with an api or on a dummy webpage, whatever.and there 's this a bit sloppy post : https://itnext.io/kubernetes-custom-controllers-recipes-for-beginners-bbc286c05ef8
ok i checked that i need to add a txt record to my dns, and i need topay on no-ip to be able to add txt record:
Oh I stil need to solve one problem before that:
kind
network, and will be able to reach the172.*.*.*
docker network ip ?Network interfaces oin the VM :
hm, hm... yep, there i think my only solution would be to use something more like a DDNS client like https://github.com/decoder-leco/plateforme/issues/5#issue-2317186510 but how can that DDNS client find out about the Ephemeral IP address that GCP assigns to my VM...?