init
This commit is contained in:
40
makefiles/07_setup_k8s.mk
Normal file
40
makefiles/07_setup_k8s.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
SHELL := /bin/bash
|
||||
.ONESHELL:
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
|
||||
MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
ANSIBLE_DIR := $(abspath $(MAKEFILE_DIR)/../ansible)
|
||||
|
||||
.PHONY: all \
|
||||
install_k8s_worker
|
||||
|
||||
all: install_k8s_worker
|
||||
|
||||
# install_k8s_master:
|
||||
# cd "$(ANSIBLE_DIR)"
|
||||
# ansible-playbook playbooks/k8s/install/k8s_master.yml -i inventory.ini
|
||||
|
||||
install_k8s_worker:
|
||||
cd "$(ANSIBLE_DIR)"
|
||||
ansible-playbook playbooks/k8s/install/k8s_worker.yml -i inventory.ini
|
||||
|
||||
# 1) ssh adminuser@localhost -p 10525 -i ./dev-kyiv01-vm-default-main-01
|
||||
# 2) cat /root/.kube/config # copy config to dev containers and change cluster block
|
||||
# - cluster:
|
||||
# insecure-skip-tls-verify: true
|
||||
# server: https://localhost:10563
|
||||
# 3) terraform apply -target=module.metallb_helm --auto-approve
|
||||
# 4) terraform apply -target=module.crunchy_operator --auto-approve
|
||||
# 5) terraform apply --auto-approve
|
||||
# 6) get gitlab credentials
|
||||
# kubectl -n postgres-operator get secret hippo-pguser-gitlab -o jsonpath='{.data.user}' | base64 -d; echo
|
||||
# kubectl -n postgres-operator get secret hippo-pguser-gitlab -o jsonpath='{.data.password}' | base64 -d; echo
|
||||
# kubectl -n postgres-operator get secret hippo-pguser-gitlab -o jsonpath='{.data.dbname}' | base64 -d; echo
|
||||
# kubectl -n postgres-operator get secret hippo-pguser-gitlab -o jsonpath='{.data.host}' | base64 -d; echo
|
||||
# kubectl -n postgres-operator get secret hippo-pguser-gitlab -o jsonpath='{.data.port}' | base64 -d; echo
|
||||
# 7) get valkey password
|
||||
# kubectl -n valkey get secret valkey-users -o jsonpath='{.data.default}' | base64 -d; echo
|
||||
|
||||
|
||||
# make -f 07_setup_k8s.mk
|
||||
|
||||
Reference in New Issue
Block a user