Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove template for AKS #135

Merged
merged 1 commit into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ci/03_ansible/hosts
deployments/kubespray/container-images/
deployments/infra/azure-aks/kubectl
deployments/infra/azure-aks/aks.yaml
deployments/infra/azure-aks/venv-ansible/
deployments/infra/aws-eks/venv-ansible/
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
tasks:
- name: Create resource group
azure.azcollection.azure_rm_resourcegroup:
name: ${AKS_RESOURCE_GROUP}
name: "{{ aks_resource_group }}"
location: japaneast
- name: Create AKS Cluster
azure.azcollection.azure_rm_aks:
name: ${AKS_NAME}
name: "{{ aks_name }}"
kubernetes_version: 1.27.7
location: japaneast
resource_group: ${AKS_RESOURCE_GROUP}
resource_group: "{{ aks_resource_group }}"
dns_prefix: akstest
agent_pool_profiles:
- name: agentpool1
Expand Down
3 changes: 1 addition & 2 deletions deployments/infra/azure-aks/run-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ set -e

curl -LO https://dl.k8s.io/release/v1.27.0/bin/linux/amd64/kubectl
chmod 755 ./kubectl
envsubst < ./aks.yaml.template > ./aks.yaml
ansible-playbook ./aks.yaml
ansible-playbook ./aks.yaml --extra-vars "aks_resource_group=${AKS_RESOURCE_GROUP} aks_name=${AKS_NAME}"
az aks get-credentials --resource-group ${AKS_RESOURCE_GROUP} --name ${AKS_NAME} --admin
./kubectl get nodes
Loading