--- /dev/null
+---
+- name: render manifests
+ command: kubectl run --context {{ context }} -q -n default -i --rm builder --image quay.io/alexpdp7/zqxjkcrud:update --restart=Never --command -- zqxjkcrud-manifest-builder
+ args:
+ stdin: "{{ definition|to_yaml }}"
+ register: manifestbuild
+ delegate_to: 127.0.0.1
+- k8s:
+ context: "{{ context }}"
+ state: present
+ apply: true
+ definition: "{{ manifestbuild.stdout | from_yaml_all }}"
+ delegate_to: 127.0.0.1
gather_facts: false
roles:
- proxmox_route_53
+
+- name: deploy weight
+ hosts: k8s-prod.h1.int.pdp7.net
+ tags:
+ - k8s
+ - weight
+ gather_facts: false
+ roles:
+ - role: zqxjkcrud
+ vars:
+ context: "admin@{{ talos_host.talos_cluster }}"
+ definition: "{{ weight }}"
}
proxmox::proxy_host {'weight-test.pdp7.net':
- target => 'https://k8s-test.h1.int.pdp7.net/',
+ target => 'https://k8s-prod.h1.int.pdp7.net/',
}
}
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all peer
- host k8s_test k8s_test k8s-test.h1.int.pdp7.net trust
+ host k8s_test k8s_test k8s-prod.h1.int.pdp7.net trust
| EOT
,
}