-
Notifications
You must be signed in to change notification settings - Fork 12
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
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
c64e43e
[skip ci] Next attempt to run Gardener in mini-lab.
Gerrit91 c0ec9e6
[skip ci] Merge remote-tracking branch 'origin/master' into gardener-…
Gerrit91 a1f220a
Move to PowerDNS extension.
Gerrit91 1f6d8a6
No override.
Gerrit91 056336c
Merge branch 'master' into gardener-local
Gerrit91 ef5a679
Progress.
Gerrit91 47a074d
Merge remote-tracking branch 'origin/master' into gardener-local
Gerrit91 91fe624
Adaptions.
Gerrit91 cd17756
Unused var.
Gerrit91 40a6844
Merge branch 'master' into gardener-local
Gerrit91 c890d9b
metal-roles was merged.
Gerrit91 41fc464
Merge remote-tracking branch 'origin/gardener-local' into gardener-local
Gerrit91 869dcd0
Merge branch 'master' into gardener-local
Gerrit91 936af29
Add module to patch istio ingress gateway svc.
Gerrit91 17e5126
Add retries.
Gerrit91 e8e185a
Not required anymore to overwrite DNS extension.
Gerrit91 c914dd0
Fix wait condition.
Gerrit91 c2c9b9c
Default to false.
Gerrit91 412d17b
Fix on wait condition.
Gerrit91 f67fbe2
Fix.
Gerrit91 84b9a80
Wait until seed is ready.
Gerrit91 9470eba
Test the flavor.
Gerrit91 065c579
Remove certs.
Gerrit91 17c0bb9
Generate certs dynamically.
Gerrit91 4d31ec6
Revert.
Gerrit91 64ec848
Rename orgs.
Gerrit91 3c09002
Deps.
Gerrit91 e55b150
Remove vault stuff.
Gerrit91 5a8affd
Add target to roll certs.
Gerrit91 c10a73d
Remove mariadb from PowerDNS.
Gerrit91 ece939d
Reduce PowerDNS requests.
Gerrit91 21a5cb9
Improve roll_certs shell script.
Gerrit91 1c12183
Fix cumulus repos.
Gerrit91 d92a628
Update 2.3.8.
Gerrit91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
- name: deploy gardener | ||
hosts: control-plane | ||
connection: local | ||
gather_facts: false | ||
pre_tasks: | ||
- name: Fake Gardener metal shoot | ||
k8s: | ||
definition: | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: shoot-info | ||
namespace: kube-system | ||
data: | ||
nodeNetwork: 172.18.0.0/16 | ||
podNetwork: 10.244.0.0/24 | ||
serviceNetwork: 10.96.0.0/16 | ||
|
||
- name: Create garden namespace | ||
k8s: | ||
definition: | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: garden | ||
|
||
# our current state in metal-roles/gardener does not support network policies from gardenlet <-> virtual garden | ||
# this should be possible to resolve when we use the Gardener Operator | ||
- name: Deploy allow all network policy | ||
k8s: | ||
definition: "{{ lookup('file', 'netpol-allow-all.yaml') }}" | ||
namespace: garden | ||
apply: yes | ||
roles: | ||
- name: ansible-common | ||
tags: always | ||
- name: minio | ||
- name: powerdns | ||
tags: powerdns | ||
- name: metal-roles/control-plane/roles/gardener | ||
tags: gardener | ||
vars: | ||
metal_control_plane_host_provider: metal | ||
|
||
post_tasks: | ||
# gardener exposes the istio ingress gateway through service type load balancer | ||
# we can fake the exposal by patching the status field, which is also what's | ||
# done in the gardener local environment | ||
- name: Wait for istio ingress gateway service | ||
kubernetes.core.k8s_info: | ||
api_version: v1 | ||
kind: Service | ||
name: istio-ingressgateway | ||
namespace: istio-ingress | ||
register: result | ||
until: result.resources | ||
retries: 30 | ||
delay: 10 | ||
|
||
- name: Patch ingress status of istio ingress gateway to allow seed to get ready | ||
patch_service_status_k8s: | ||
name: istio-ingressgateway | ||
namespace: istio-ingress | ||
body: | ||
status: | ||
loadBalancer: | ||
ingress: | ||
- ip: "172.17.0.1" | ||
|
||
- name: Wait until seed is ready | ||
kubernetes.core.k8s_info: | ||
api_version: "core.gardener.cloud/v1beta1" | ||
kind: Seed | ||
name: "{{ metal_control_plane_stage_name }}" | ||
kubeconfig: "{{ gardener_kube_apiserver_kubeconfig_path }}" | ||
wait: yes | ||
wait_condition: | ||
reason: GardenletReady | ||
status: "True" | ||
type: GardenletReady | ||
wait_timeout: 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
{ | ||
"C": "DE", | ||
"L": "Munich", | ||
"O": "Metal-Stack", | ||
"O": "metal-stack", | ||
"OU": "DevOps", | ||
"ST": "Bavaria" | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"CN": "client", | ||
"hosts": [""], | ||
"key": { | ||
"algo": "ecdsa", | ||
"size": 256 | ||
}, | ||
"names": [ | ||
{ | ||
"C": "DE", | ||
"L": "Munich", | ||
"O": "metal-stack", | ||
"OU": "DevOps", | ||
"ST": "Bavaria" | ||
} | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.