Skip to content

Commit

Permalink
Bump resources on nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Aug 21, 2024
1 parent 367b287 commit edf7c9c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deploy_k8s_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ jobs:
if: steps.plan.outcome == 'failure'
run: exit 1

- name: Terraform Apply
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > mesh_cluster/mesh${{ vars.ENV_NAME }}
echo "${{ secrets.SSH_PUBLIC_KEY }}" > mesh_cluster/mesh${{ vars.ENV_NAME }}.pub
echo "${{ secrets.DATADOG_API_KEY }}" > mesh_cluster/datadog_api_key
chmod 600 mesh_cluster/mesh${{ vars.ENV_NAME }}
chmod 600 mesh_cluster/mesh${{ vars.ENV_NAME }}.pub
terraform apply -auto-approve -input=false -var-file=${{ vars.ENV_NAME }}.tfvars
working-directory: ./terraform/

- name: Run playbook
run: sleep 45 && export PATH="$HOME/.local/bin:$PATH" && ansible-playbook -i inventory.yaml k8s_infra.yaml
working-directory: ./ansible/
#- name: Terraform Apply
# run: |
# echo "${{ secrets.SSH_PRIVATE_KEY }}" > mesh_cluster/mesh${{ vars.ENV_NAME }}
# echo "${{ secrets.SSH_PUBLIC_KEY }}" > mesh_cluster/mesh${{ vars.ENV_NAME }}.pub
# echo "${{ secrets.DATADOG_API_KEY }}" > mesh_cluster/datadog_api_key
# chmod 600 mesh_cluster/mesh${{ vars.ENV_NAME }}
# chmod 600 mesh_cluster/mesh${{ vars.ENV_NAME }}.pub
# terraform apply -auto-approve -input=false -var-file=${{ vars.ENV_NAME }}.tfvars
# working-directory: ./terraform/
#
#- name: Run playbook
# run: sleep 45 && export PATH="$HOME/.local/bin:$PATH" && ansible-playbook -i inventory.yaml k8s_infra.yaml
# working-directory: ./ansible/
4 changes: 2 additions & 2 deletions terraform/mesh_cluster/workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ resource "proxmox_vm_qemu" "meshwkr" {

clone = var.mesh_proxmox_template_image

cores = 2
cores = 4
sockets = 1
memory = 2560
memory = 4096
os_type = "cloud-init"
agent = 1
cloudinit_cdrom_storage = var.mesh_proxmox_storage_location
Expand Down

0 comments on commit edf7c9c

Please sign in to comment.