-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
96 changed files
with
1,794 additions
and
483 deletions.
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
k3s_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
k3s_join_url: "https://master1.unicornafk.fr:6443" | ||
k3s_join_url: "https://{{ hostvars[groups['kubernetes_master'][0]].inventory_hostname }}:6443" | ||
k3s_ha_controlplane_ip: "{{ kubernetes_vip_url }},{{ lookup('community.general.dig', kubernetes_vip_url) }},{{ lookup('community.general.dig', kubernetes_vip_url, 'qtype=AAAA') }}" | ||
k3s_nodename: "{{ inventory_hostname }}" |
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 |
---|---|---|
@@ -1,10 +1,147 @@ | ||
--- | ||
cilium_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
kube_vip_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
kube_vip_address: "192.168.10.80" | ||
kube_vip_interface: ens192 | ||
emissary_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
kube_vip_address: | ||
- namespace: kube-vip-ipv4 | ||
address: 192.168.10.80 | ||
cidr: 32 | ||
prometheus_server: ":2112" | ||
- namespace: kube-vip-ipv6 | ||
address: 2a0c:b641:2c0:110::80 | ||
cidr: 128 | ||
prometheus_server: ":2113" | ||
kube_vip_interface: enp6s18 | ||
cilium_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
traefik_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
traefik_external_ips: | ||
- 192.168.10.100 | ||
- 2a0c:b641:2c0:110::100 | ||
traefik_namespace: traefik-external | ||
traefik_default_ingress_class: false | ||
traefik_ingress_class_name: traefik-external | ||
longhorn_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
metallb_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
metallb_ip_address_pool: | ||
- 192.168.10.100-110 | ||
metallb_ip_address_pools: | ||
- name: private | ||
pools: | ||
- 192.168.10.100-192.168.10.120 | ||
- 2a0c:b641:02c0:110::100-2a0c:b641:02c0:110::120 | ||
auto_assign: true | ||
vault_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
vault_init_output_file_path: "{{ root_dir_role_path }}/vault.json.secrets" | ||
vault_ca_filename: "{{ ca_certificates_local_path_ca_certificate }}" | ||
vault_cert_filename: "{{ certs_dir_role_path }}homelab/vault.unicornafk.fr/vault.unicornafk.fr-fullchain.crt" | ||
vault_key_filename: "{{ certs_dir_role_path }}homelab/vault.unicornafk.fr/vault.unicornafk.fr.key" | ||
vault_url: "https://vault.unicornafk.fr:8200" | ||
vault_ca_path: "{{ ca_certificates_local_path_ca_certificate }}" | ||
vault_loadbalancer_ip: | ||
- 192.168.10.102 | ||
- 2a0c:b641:2c0:110::102 | ||
vault_secrets_engine: | ||
- name: kv-v2 | ||
path: secret | ||
- name: pki | ||
path: pki | ||
tunes: | ||
max-lease-ttl: 8760h | ||
passthrough-request-headers: | ||
- If-Modified-Since | ||
- Last-Modified | ||
- Location | ||
- Replay-Nonce | ||
- Link | ||
vault_auth_methods: | ||
- name: kubernetes | ||
path: kubernetes | ||
vault_policies: | ||
- name: pki | ||
rules: | ||
- path: pki* | ||
capabilities: | ||
- read | ||
- list | ||
- path: pki/sign/* | ||
capabilities: | ||
- create | ||
- update | ||
- path: pki/issue/* | ||
capabilities: | ||
- create | ||
- name: external-dns-internal | ||
rules: | ||
- path: secret/data/homelab/prod/external_dns/internal | ||
capabilities: | ||
- read | ||
- name: external-dns-external | ||
rules: | ||
- path: secret/data/homelab/prod/external_dns/external | ||
capabilities: | ||
- read | ||
public_vault_datas: | ||
- path: pki/config/ca | ||
data: | ||
pem_bundle: "{{ lookup('ansible.builtin.file', ca_certificates_local_path_ca_certificate) }}\n{{ lookup('ansible.builtin.file', certs_dir_role_path ~ 'intermediate/vault/vault.crt') }}\n{{ lookup('ansible.builtin.file', certs_dir_role_path ~ 'intermediate/vault/vault.key') }}" | ||
- path: pki/config/cluster | ||
data: | ||
path: https://vault-active.vault.svc:8200/v1/pki | ||
aia_path: https://vault.unicornafk.fr:8200/v1/pki | ||
- path: pki/config/urls | ||
data: | ||
issuing_certificates: "{{ '{{' }}cluster_aia_path{{ '}}' }}/issuer/{{ '{{' }}issuer_id{{ '}}' }}/der" | ||
crl_distribution_points: "{{ '{{' }}cluster_aia_path{{ '}}' }}/issuer/{{ '{{' }}issuer_id{{ '}}' }}/crl/der" | ||
ocsp_servers: "{{ '{{' }}cluster_path{{ '}}' }}/ocsp" | ||
enable_templating: true | ||
- path: pki/config/acme | ||
data: | ||
enabled: true | ||
- path: pki/roles/unicornafk-dot-fr | ||
data: | ||
allowed_domains: unicornafk.fr | ||
allow_subdomains: true | ||
ttl: 72h | ||
key_type: rsa | ||
key_bits: 4096 | ||
signature_bits: 512 | ||
organization: "{{ organization }}" | ||
country: "{{ country }}" | ||
require_cn: false # must be disabled for cert-manager | ||
- path: auth/kubernetes/config | ||
data: | ||
kubernetes_host: "https://10.43.0.1:443" | ||
- path: auth/kubernetes/role/vault-cert-manager | ||
data: | ||
bound_service_account_names: vault-cert-manager | ||
bound_service_account_namespaces: cert-manager | ||
audience: "vault://vault" | ||
policies: pki | ||
ttl: 1m | ||
- path: auth/kubernetes/role/external-dns-internal | ||
data: | ||
bound_service_account_names: external-dns | ||
bound_service_account_namespaces: external-dns-internal | ||
policies: external-dns-internal | ||
ttl: 72h | ||
- path: auth/kubernetes/role/external-dns-external | ||
data: | ||
bound_service_account_names: external-dns | ||
bound_service_account_namespaces: external-dns-external | ||
policies: external-dns-external | ||
ttl: 72h | ||
vault_datas: "{{ public_vault_datas + secret_vault_datas }}" | ||
cert_manager_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
cert_manager_email: "{{ monitoring_email }}" | ||
cert_manager_vault_sign: unicornafk-dot-fr | ||
cert_manager_vault_server_ca: "{{ vault_ca_filename }}" | ||
external_dns_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
external_dns_namespace: "external-dns-external" | ||
external_dns_vault_role: external-dns-external | ||
external_dns_vault_inject_secret: secret/data/homelab/prod/external_dns/external | ||
external_dns_vault_ca_filename: "{{ vault_ca_filename }}" | ||
external_dns_envs: | ||
- SCW_ACCESS_KEY | ||
- SCW_SECRET_KEY | ||
external_dns_args: "--source=ingress --provider=scaleway {% for domain in domains %}--domain-filter={{ domain }}{% if not loop.last %} {% endif %}{% endfor %} --registry=txt --txt-owner-id=homelab.kubernetes --ingress-class=traefik-external --default-targets=82.65.135.80 --default-targets=2a0c:b641:2c0:110::100" | ||
argocd_localhost_kubeconfig_path: "{{ kubernetes_localhost_kubeconfig_path }}" | ||
argocd_hostname: argocd.unicornafk.fr | ||
argocd_ingress_class: traefik-internal | ||
argocd_repository_name: homelab | ||
argocd_repository_url: https://github.com/M0NsTeRRR/homelabv3-infra |
Oops, something went wrong.