Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add k0s+aws template with bootstrapped control planes #13

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add target to deploy local registry
Signed-off-by: Andrei Pavlov <apavlov@mirantis.com>
  • Loading branch information
Kshatrix authored and eromanova committed Jun 5, 2024
commit fc58506ebbcf57276ee183c56930a560020f1412
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ hmc-chart-generate: kustomize helmify ## Generate hmc helm chart
##@ Deployment

KIND_CLUSTER_NAME ?= hmc-dev
LOCAL_REGISTRY_NAME ?= hmc-local-registry
LOCAL_REGISTRY_PORT ?= 5001

ifndef ignore-not-found
ignore-not-found = false
Expand All @@ -145,6 +147,18 @@ undeploy-kind: kind
kind delete cluster --name $(KIND_CLUSTER_NAME); \
fi

.PHONY: deploy-local-registry
deploy-local-registry:
@if [ ! "`$(CONTAINER_TOOL) ps -aq -f name=$(LOCAL_REGISTRY_NAME)`" ]; then \
$(CONTAINER_TOOL) run -d --restart=always -p "127.0.0.1:$(LOCAL_REGISTRY_PORT):5000" --network bridge --name "$(LOCAL_REGISTRY_NAME)" registry:2; \
fi

.PHONY: undeploy-local-registry
undeploy-local-registry:
@if [ "`$(CONTAINER_TOOL) ps -aq -f name=$(LOCAL_REGISTRY_NAME)`" ]; then \
$(CONTAINER_TOOL) rm -f "$(LOCAL_REGISTRY_NAME)"; \
fi

.PHONY: deploy-helm-controller
deploy-helm-controller: helm
$(HELM) upgrade --install --create-namespace --set $(FLUX_CHART_VALUES) helm-controller $(FLUX_CHART_REPOSITORY) --version $(FLUX_CHART_VERSION) -n hmc-system
Expand Down
2 changes: 1 addition & 1 deletion config/dev/local_registry_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ spec:
- name: manager
args:
- "--leader-elect"
- "--default-oci-registry=oci://local-registry:5000/charts"
- "--default-oci-registry=oci://hmc-local-registry:5000/charts"
- "--insecure-registry"