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 flavor to run Gardener in the mini-lab #202

Merged
merged 34 commits into from
Jan 15, 2025
Merged

Add flavor to run Gardener in the mini-lab #202

merged 34 commits into from
Jan 15, 2025

Conversation

Gerrit91
Copy link
Contributor

@Gerrit91 Gerrit91 commented Nov 20, 2024

Description

I am trying to do this in order to develop an automation for migrating our Gardener deployment from metal-roles to the Gardener Operator. This PR prepares for it by allowing to deploy the Gardener Control Plane through the existing automation.

I did not take care of any shoot deployments for now. This would be a stretch goal. For the sole purpose of developing the Operator migration, this implementation should be sufficient.

Depends on:

References:

@Gerrit91
Copy link
Contributor Author

Gerrit91 commented Nov 20, 2024

Started with the provider-local and had to build it locally upfront. But I found the network setup too opinionated for our use-case to just reach the goal of having a running control plane. Therefore, I went for the power dns and backup s3 extension from @robertvolkmann.

Seed now reconciles to 100%, but two things have to be done:

  1. Remove the pod anti affinity rule in order to successfully deploy the power dns extension (Remove deployment anti affinity rule. gardener-extension-dns-powerdns#9)
  2. Patch 172.17.0.1 into the ingress status of istio-ingressgateway service type load balancer (kubectl patch -n istio-ingress svc istio-ingressgateway --type=merge --subresource status --patch 'status: {loadBalancer: {ingress: [{ip: "172.17.0.1"}]}}')
❯ k --context virtual-garden get seed
NAME   STATUS   LAST OPERATION               PROVIDER   REGION   AGE   VERSION    K8S VERSION
test   Ready    Reconcile Succeeded (100%)   metal      local    86m   v1.100.2   v1.30.6

❯ k get dnsrecords.extensions.gardener.cloud -A
NAMESPACE   NAME           TYPE       DOMAIN NAME                    RECORD TYPE   STATUS      AGE
garden      seed-ingress   powerdns   *.gardener.172.17.0.1.nip.io   A             Succeeded   73m

@Gerrit91 Gerrit91 marked this pull request as ready for review January 13, 2025 15:19
@Gerrit91 Gerrit91 requested a review from a team as a code owner January 13, 2025 15:19
files/certs/ca-key.pem Outdated Show resolved Hide resolved
compose.yaml Show resolved Hide resolved
@@ -12,3 +12,4 @@ requirements.yaml
.extra_vars.yaml
sonic-vs.img
*.bak
.ansible
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ansible caches git clones here, which are happening in the Gardener role.

roles/powerdns/templates/mariadb.yaml.j2 Outdated Show resolved Hide resolved
@Gerrit91 Gerrit91 changed the title Next attempt to install Gardener in the mini-lab Add flavor to run Gardener in the mini-lab Jan 14, 2025
@majst01 majst01 merged commit 7a5ae0c into master Jan 15, 2025
2 of 3 checks passed
@majst01 majst01 deleted the gardener-local branch January 15, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants