mirror of
https://github.com/Dannecron/netology-devops-gw-infra.git
synced 2025-12-25 15:22:36 +03:00
[stage-2] some fixes
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ playbook_dir }}/templates/kubectl/conf.j2"
|
src: "{{ playbook_dir }}/templates/kubectl/conf.j2"
|
||||||
dest: "~/.kube/config"
|
dest: "~/.kube/config"
|
||||||
|
mode: 0700
|
||||||
- name: Kubectl - check connection
|
- name: Kubectl - check connection
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ resource "random_shuffle" "netology-gw-subnet-random" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "yandex_compute_instance" "k8s-cluster" {
|
resource "yandex_compute_instance" "k8s-cluster" {
|
||||||
for_each = toset(["control", "node01", "node2"])
|
for_each = toset(["control", "node01", "node02"])
|
||||||
|
|
||||||
name = each.key
|
name = each.key
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user