ansible-create-k8s-user/defaults/main.yml
Nikolai Rodionov 3806fe53b5
Change the way binaries are installed
Now binaries are installed to the workdir, so they do not affect the
system. I want to have this role more or less containerized

Also some minor refactoring has been done as well
2023-11-19 17:03:42 +01:00

79 lines
2.4 KiB
YAML

---
# --------------------------------------
# -- yq version
# --------------------------------------
yq:
version: v4.35.2
binary: yq_linux_amd64
# --------------------------------------
# -- kubectl version
# --------------------------------------
kubectl:
version: v1.26.6
arch: amd64
# --------------------------------------
# -- Path to k8s admin config
# --------------------------------------
k8s_config_path: /etc/kubernetes/admin.conf
k8s_cert_path: /etc/kubernetes/pki
k8s_cert_crt_file: ca.crt
k8s_cert_key_file: ca.key
# --------------------------------------
# -- K8s username
# --------------------------------------
username: "admin"
# --------------------------------------
# -- How many days certificate
# -- will be valid
# --------------------------------------
certificate_expires_in: 500
# --------------------------------------
# -- K8s cluster name
# --------------------------------------
cluster: "microk8s-cluster"
# --------------------------------------
# -- RoleBinding parameters
# --------------------------------------
# -- Binding type:
# ---- ClusterRoleBinding
# ---- RoleBinding
# --------------------------------------
binding_type: ClusterRoleBinding
# --------------------------------------
# -- Role type
# -- ClusterRole
# -- Role
# --------------------------------------
role_type: ClusterRole
# --------------------------------------
# -- Cluster role name
# -- https://kubernetes.io/docs/reference/access-authn-authz/rbac/
# --------------------------------------
role: cluster-admin
# --------------------------------------
# users:
# - username: "admin"
# cluster: "microk8s-cluster"
# certificate_expires_in: 500
# binding_type: ClusterRoleBinding
# role_type: ClusterRole
# role: cluster-admin
# k8s_config_path: /etc/kubernetes/admin.conf
# k8s_cert_path: /etc/kubernetes/pki
# k8s_cert_crt_file: ca.crt
# k8s_cert_key_file: ca.key
# --------------------------------------
users: []
# --------------------------------------
# -- Use with microk8s
# --------------------------------------
# k8s_config_path: /var/snap/microk8s/current/credentials/client.config
# k8s_cert_path: /var/snap/microk8s/current/certs
# --------------------------------------
# -- Use with k3s
# --------------------------------------
# k8s_config_path: /etc/rancher/k3s/k3s.yaml
# k8s_cert_path: /var/lib/rancher/k3s/server/tls
# k8s_cert_crt_file: server-ca.crt
# k8s_cert_key_file: server-ca.key