-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
142 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 기본 클러스터 설정 | ||
cluster_name: ptk-dev | ||
aws_region: "ap-northeast-2" | ||
|
||
# 네트워크 설정 | ||
kube_network_plugin: calico | ||
kube_pods_subnet: "172.16.0.0/16" | ||
kube_service_addresses: "10.233.0.0/18" | ||
|
||
# 컨테이너 런타임 설정 | ||
container_manager: containerd | ||
dns_mode: coredns | ||
|
||
# 쿠버네티스 버전 설정 | ||
kube_version: v1.30.0 | ||
|
||
# 클라우드 프로바이더 설정 | ||
cloud_provider: external | ||
|
||
# AWS CCM 설정 | ||
aws_cloud_controller_manager_enabled: true | ||
aws_cloud_controller_manager_version: v1.30.0 | ||
aws_ebs_csi_enabled: true | ||
|
||
# kubeadm 설정 | ||
kubeadm_config: | ||
init: | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
cloud-provider: "external" | ||
cluster: | ||
apiServer: | ||
extraArgs: | ||
cloud-provider: "external" | ||
controllerManager: | ||
extraArgs: | ||
cloud-provider: "external" |
15 changes: 15 additions & 0 deletions
15
k8s-cluster-config/inventory/ptk-dev/group_vars/k8s_cluster/addons.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# AWS Cloud Controller Manager | ||
aws_cloud_controller_manager_enabled: true | ||
|
||
# AWS EBS CSI Driver | ||
aws_ebs_csi_enabled: true | ||
aws_ebs_csi_enable_volume_scheduling: true | ||
aws_ebs_csi_enable_volume_snapshot: true | ||
aws_ebs_csi_enable_volume_resizing: true | ||
aws_ebs_csi_controller_replicas: 1 | ||
|
||
# Dashboard (필요한 경우) | ||
dashboard_enabled: false | ||
|
||
# Helm (필요한 경우) | ||
helm_enabled: true |
9 changes: 9 additions & 0 deletions
9
k8s-cluster-config/inventory/ptk-dev/group_vars/k8s_cluster/k8s-cluster.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
kube_version: v1.30.0 | ||
container_manager: containerd | ||
cluster_name: ptk-dev | ||
cloud_provider: external | ||
kube_pods_subnet: 10.244.0.0/16 | ||
kubelet_node_config: | ||
apiVersion: kubelet.config.k8s.io/v1beta1 | ||
kind: KubeletConfiguration | ||
cloudProvider: external |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[all] | ||
ip-10-0-1-93.ap-northeast-2.compute.internal ansible_host=13.124.196.146 ip=10.0.1.93 etcd_member_name=etcd1 | ||
ip-10-0-1-63.ap-northeast-2.compute.internal ansible_host=43.203.208.123 ip=10.0.1.63 | ||
ip-10-0-2-213.ap-northeast-2.compute.internal ansible_host=13.125.205.70 ip=10.0.2.213 | ||
|
||
[all:vars] | ||
ansible_user=ubuntu | ||
ansible_become=true | ||
ansible_ssh_private_key_file=~/.ssh/ptk-k8s-key.pem | ||
kube_user=root | ||
cluster_name=ptk-dev | ||
|
||
[kube_control_plane] | ||
ip-10-0-1-93.ap-northeast-2.compute.internal | ||
|
||
[etcd] | ||
ip-10-0-1-93.ap-northeast-2.compute.internal | ||
|
||
[kube_node] | ||
ip-10-0-1-63.ap-northeast-2.compute.internal | ||
ip-10-0-2-213.ap-northeast-2.compute.internal | ||
|
||
[calico_rr] | ||
|
||
[k8s_cluster:children] | ||
kube_control_plane | ||
kube_node | ||
calico_rr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- name: Get Argo CD initial admin password | ||
shell: "kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath='{.data.password}' | base64 --decode" | ||
register: argocd_admin_password | ||
|
||
|
||
# - name: Add Git repository to ArgoCD | ||
# command: > | ||
# argocd login --port-forward-namespace argocd | ||
# --username admin | ||
# --password {{ argocd_password.stdout }} | ||
# --plaintext | ||
|
||
# - name: Add repository | ||
# command: > | ||
# argocd repo add {{ git_repo_url }} | ||
# --username {{ git_username }} | ||
# --password {{ git_token }} | ||
# --port-forward-namespace argocd |