Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

WIP: WKS Airgapped Registry user story #144

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kingdonb
Copy link

@kingdonb kingdonb commented Mar 1, 2020

This is some documentation that I wrote in response to my own issue #140

I've written somewhat past what I tested and tried out for myself, the first two sections describe what I needed to get my application started on WKS with a private registry and Footloose

The section called "Addressing registry by name from within the Kubernetes cluster" describes something I haven't actually tried yet, but foresee will also be needed. Using an External Service Endpoint (aka Service with no pod selectors) to address the docker registry container.

It should work... I wanted to get all of this written down before anything else!

@kingdonb
Copy link
Author

kingdonb commented Mar 1, 2020

I think I might still add one more section, unless there's a way to provide all this info a bit more concisely... the one gotcha/detail that's still missing is that, while you can give the registry a Service endpoint in the cluster, ...that service discovery which makes addressing the registry by name possible, won't be available until after the cluster is bootstrapped (so the registry IP really has to go into the cluster.yaml and setup.js, can't unfortunately be abstracted behind a service).

@kingdonb
Copy link
Author

kingdonb commented Mar 1, 2020

Re: "Addressing registry by name from within the Kubernetes cluster"

This selectorless-service trick doesn't actually work, for basically the same reason it doesn't work at bootstrap time. The Docker daemon is outside of the cluster, does not allow discovery with kube-dns. (And that's a shame, unless I can somehow arrange for an externally provided DNS record to point at the registry IP, I'm stuck hardcoding the Registry IP into manifests.)

The workaround (or maybe just, the answer) is to go ahead and put a (stable, insecure) registry running somewhere on the private network, then I can refer to it by its DNS name and port.

(I've done that for now, but the document still reflects the strategy that doesn't work...)

@kingdonb kingdonb changed the title WKS Airgapped Registry user story WIP: WKS Airgapped Registry user story Mar 1, 2020
@kingdonb
Copy link
Author

This PR is stale, I have rebased it to be in sync with master

I did not check it for currency, not sure if it would still be relevant today. (I needed to refer to this doc for another reason.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant