feat: update jinja delimiters back to default (#1269)
* feat: update jinja delimiters back to default Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: remove cert-manager promrules Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: update talos csr approver Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
5fa8b9685a
commit
df642e5425
55 files changed
+295
-358
No files matched your search
@@ -5,36 +5,36 @@ metadata:
|
||||
name: home-kubernetes
|
||||
spec:
|
||||
hosts:
|
||||
#% for item in cluster.nodes.inventory %#
|
||||
#% if item.controller %#
|
||||
{% for item in cluster.nodes.inventory %}
|
||||
{% if item.controller %}
|
||||
- role: controller+worker
|
||||
#% else %#
|
||||
{% else %}
|
||||
- role: worker
|
||||
#% endif %#
|
||||
{% endif %}
|
||||
ssh:
|
||||
address: "#{ item.address }#"
|
||||
user: "#{ item.ssh_username }#"
|
||||
#% if item.controller %#
|
||||
address: "{{ item.address }}"
|
||||
user: "{{ item.ssh_username }}"
|
||||
{% if item.controller %}
|
||||
installFlags:
|
||||
- --disable-components=metrics-server
|
||||
- --no-taints
|
||||
#% endif %#
|
||||
{% endif %}
|
||||
files:
|
||||
- name: bootstrap-scripts
|
||||
src: scripts
|
||||
hooks:
|
||||
apply:
|
||||
before:
|
||||
- bash ~/apply-system.sh "#{ item.name }#"
|
||||
#% if item.controller %#
|
||||
- bash ~/apply-system.sh "{{ item.name }}"
|
||||
{% if item.controller %}
|
||||
- bash ~/apply-kube-vip.sh
|
||||
#% endif %#
|
||||
{% endif %}
|
||||
reset:
|
||||
before:
|
||||
- bash ~/reset-cilium.sh
|
||||
after:
|
||||
- bash ~/reset-system.sh
|
||||
#% endfor %#
|
||||
{% endfor %}
|
||||
k0s:
|
||||
# renovate: datasource=github-releases depName=k0sproject/k0s
|
||||
version: v1.29.1+k0s.0
|
||||
@@ -55,21 +55,21 @@ spec:
|
||||
listen-metrics-urls: http://0.0.0.0:2381
|
||||
api:
|
||||
sans:
|
||||
#% if cluster.endpoint_vip %#
|
||||
- "#{ cluster.endpoint_vip }#"
|
||||
#% endif %#
|
||||
#% for item in cluster.tls_sans %#
|
||||
- "#{ item }#"
|
||||
#% endfor %#
|
||||
#% for item in controllers %#
|
||||
#% if item.controller %#
|
||||
- "#{ item.address }#"
|
||||
- "#{ item.name }#"
|
||||
#% endif %#
|
||||
#% endfor %#
|
||||
{% if cluster.endpoint_vip %}
|
||||
- "{{ cluster.endpoint_vip }}"
|
||||
{% endif %}
|
||||
{% for item in cluster.tls_sans %}
|
||||
- "{{ item }}"
|
||||
{% endfor %}
|
||||
{% for item in controllers %}
|
||||
{% if item.controller %}
|
||||
- "{{ item.address }}"
|
||||
- "{{ item.name }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
network:
|
||||
podCIDR: "#{ cluster.pod_network.split(',')[0] }#"
|
||||
serviceCIDR: "#{ cluster.service_network.split(',')[0] }#"
|
||||
podCIDR: "{{ cluster.pod_network.split(',')[0] }}"
|
||||
serviceCIDR: "{{ cluster.service_network.split(',')[0] }}"
|
||||
provider: custom
|
||||
kubeProxy:
|
||||
disabled: true
|
||||
@@ -88,6 +88,6 @@ spec:
|
||||
version: 1.14.6
|
||||
namespace: kube-system
|
||||
values: |2
|
||||
#% filter indent(width=18, first=True) %#
|
||||
#% include 'partials/cilium-values-init.partial.yaml.j2' %#
|
||||
#% endfilter %#
|
||||
{% filter indent(width=18, first=True) %}
|
||||
{% include 'partials/cilium-values-init.partial.yaml.j2' %}
|
||||
{% endfilter %}
|
||||
@@ -9,10 +9,10 @@ mkdir -p /var/lib/k0s/manifests/kube-vip
|
||||
|
||||
# Create kube-vip rbac
|
||||
cat <<EOF > /var/lib/k0s/manifests/kube-vip/rbac.yaml
|
||||
#% include 'partials/kube-vip-rbac.partial.yaml.j2' %#
|
||||
{% include 'partials/kube-vip-rbac.partial.yaml.j2' %}
|
||||
EOF
|
||||
|
||||
# Create kube-vip daemonset
|
||||
cat <<EOF > /var/lib/k0s/manifests/kube-vip/ds.yaml
|
||||
#% include 'partials/kube-vip-ds.partial.yaml.j2' %#
|
||||
{% include 'partials/kube-vip-ds.partial.yaml.j2' %}
|
||||
EOF
|
||||
@@ -22,7 +22,7 @@ EOF
|
||||
fi
|
||||
|
||||
# Timezone
|
||||
timedatectl set-timezone "#{ timezone }#"
|
||||
timedatectl set-timezone "{{ timezone }}"
|
||||
|
||||
# Install Packages
|
||||
apt-get install -y --no-install-recommends \
|
||||
@@ -35,10 +35,10 @@ apt-get install -y --no-install-recommends \
|
||||
chattr -i /etc/resolv.conf
|
||||
rm -f /etc/resolv.conf
|
||||
cat <<EOF > /etc/resolv.conf
|
||||
search #{ cluster.nodes.search_domain|default('.', true) }#
|
||||
#% for item in cluster.nodes.dns_servers %#
|
||||
nameserver #{ item }#
|
||||
#% endfor %#
|
||||
search {{ cluster.nodes.search_domain|default('.', true) }}
|
||||
{% for item in cluster.nodes.dns_servers %}
|
||||
nameserver {{ item }}
|
||||
{% endfor %}
|
||||
EOF
|
||||
chattr +i /etc/resolv.conf
|
||||
|
||||
|
||||
Reference in new issue
Block a user