Skip to content

Commit e705ebe

Browse files
authored
Merge pull request #350 from cloudfoundry/scale-workers
Scale workers and fix concourse setup
2 parents e89f0b8 + 831d045 commit e705ebe

File tree

8 files changed

+213
-239
lines changed

8 files changed

+213
-239
lines changed

flake.nix

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,7 @@
2424
forAllSystems = nixpkgsLib.genAttrs supportedSystems;
2525

2626
# Nixpkgs instantiated for supported system types.
27-
nixpkgsFor = forAllSystems (system: import nixpkgs-repo {
28-
inherit system;
29-
config = {
30-
## Prefer allowing specific packages when unfree over general permission.
31-
# allowUnfree = true;
32-
allowUnfreePredicate = pkg: builtins.elem (nixpkgsLib.getName pkg) [
33-
"terraform"
34-
];
35-
};
36-
});
27+
nixpkgsFor = forAllSystems (system: import nixpkgs-repo { inherit system; });
3728
in {
3829
packages = forAllSystems (system:
3930
let
@@ -55,7 +46,7 @@
5546
kapp
5647
kubectl
5748
kubernetes-helm
58-
terraform
49+
opentofu
5950
terragrunt
6051
vendir
6152
ytt

terraform-modules/concourse/app/concourse.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ data "helm_template" "concourse" {
4040
name = "web.replicas"
4141
value = var.gke_default_pool_node_count
4242
}
43+
44+
set {
45+
name = "concourse.worker.runtime"
46+
value = "containerd"
47+
}
4348
}
4449

4550
data "carvel_ytt" "concourse_app" {

terraform-modules/concourse/backend/files/vendir.lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ directories:
33
- contents:
44
- githubRelease:
55
tag: v0.10.3
6-
url: https://api.github.com/repos/vmware-tanzu/carvel-secretgen-controller/releases/71524101
6+
url: https://api.github.com/repos/carvel-dev/secretgen-controller/releases/71524101
77
path: .
88
path: config/carvel-secretgen-controller
99
kind: LockConfig

terragrunt/concourse-wg-ci/app/.terraform.lock.hcl

Lines changed: 56 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terragrunt/concourse-wg-ci/backend/.terraform.lock.hcl

Lines changed: 45 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terragrunt/concourse-wg-ci/config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concourse_github_mainTeam: "cloudfoundry:wg-app-runtime-interfaces-autoscaler-ap
2121
concourse_github_mainTeamUser: ""
2222

2323
# Concourse helm chart
24-
concourse_helm_version: "17.3.1"
24+
concourse_helm_version: "17.2.0"
2525

2626
# Module sources for the stack - git or local
2727
# ie.
@@ -46,7 +46,7 @@ sql_instance_backup_location: eu
4646
sql_instance_disk_size: 38
4747

4848
# Other GKE vars
49-
gke_controlplane_version: 1.23.8-gke.1900
49+
gke_controlplane_version: 1.27.8-gke.1067004
5050
gke_cluster_ipv4_cidr: 10.104.0.0/14
5151
gke_services_ipv4_cidr_block: 10.108.0.0/20
5252
gke_master_ipv4_cidr_block: 172.16.0.32/28
@@ -58,10 +58,10 @@ gke_default_pool_ssd_count: 0
5858

5959
# typical config for concourse worker is n4-standard-4 and ssd_count: 1
6060
# note: economy e2-standard machine can't use local ssd drives
61-
gke_workers_pool_machine_type: e2-standard-4
62-
gke_workers_pool_node_count: 2
61+
gke_workers_pool_machine_type: n2-standard-4
62+
gke_workers_pool_node_count: 4
6363
gke_workers_pool_autoscaling_max: 4
64-
gke_workers_pool_ssd_count: 0
64+
gke_workers_pool_ssd_count: 1
6565

6666
# low number of preallocated ports will impact networking for heavy concourse pipelines
6767
gke_cloud_nat_min_ports_per_vm: 16384

0 commit comments

Comments
 (0)