Skip to content

Commit 6d9b4ec

Browse files
authored
Addition of CNCS Config Generator (Beta).
Addition of CNCS Config Generator (Beta).
2 parents ce5400a + c46d5c0 commit 6d9b4ec

File tree

139 files changed

+9070
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+9070
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"addressType": "INTERNAL",
3+
"purpose": "PRIVATE_SERVICE_CONNECT",
4+
"prefixLength": 24
5+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"clusterType": "PRIMARY",
3+
"automatedBackupPolicy": {
4+
"enabled": false,
5+
"weeklySchedule": {
6+
"startTimes": [
7+
{
8+
"hours": 22,
9+
"minutes": 0,
10+
"seconds": 0,
11+
"nanos": 0
12+
}
13+
],
14+
"daysOfWeek": [
15+
"SUNDAY"
16+
]
17+
},
18+
"backupWindow": "7200s"
19+
},
20+
"initialUser": {
21+
"user": "postgres"
22+
},
23+
"primaryInstance": {
24+
"displayName": "Default Primary Instance",
25+
"instanceType": "PRIMARY",
26+
"machineCpuCount": 2
27+
},
28+
"readPoolInstance": null
29+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"automatic_scaling": {
3+
"cool_down_period": "120s",
4+
"max_concurrent_requests": 80,
5+
"max_total_instances": 5,
6+
"min_total_instances": 1,
7+
"cpu_utilization": {
8+
"target_utilization": 0.7
9+
}
10+
}
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"delete_service_on_destroy": true
3+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"container_name": "default-job-container",
3+
"image": "us-docker.pkg.dev/cloudrun/container/job",
4+
"template": {
5+
"template": {
6+
"maxRetries": 1,
7+
"timeout": "600s",
8+
"containers": [
9+
{
10+
"resources": {
11+
"limits": {
12+
"cpu": "1",
13+
"memory": "512Mi"
14+
}
15+
}
16+
}
17+
]
18+
}
19+
},
20+
"executionEnvironment": "EXECUTION_ENVIRONMENT_GEN2"
21+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"container_name": "default-service-container",
3+
"image": "us-docker.pkg.dev/cloudrun/container/hello",
4+
"template": {
5+
"scaling": {
6+
"minInstanceCount": 0,
7+
"maxInstanceCount": 2
8+
},
9+
"containers": [
10+
{
11+
"resources": {
12+
"limits": {
13+
"cpu": "1",
14+
"memory": "512Mi"
15+
}
16+
}
17+
}
18+
]
19+
},
20+
"ingress": "INGRESS_TRAFFIC_ALLOW_INTERNAL_ONLY",
21+
"executionEnvironment": "EXECUTION_ENVIRONMENT_GEN2"
22+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"databaseVersion": "MYSQL_8_0",
3+
"region": "us-central1",
4+
"settings": {
5+
"tier": "db-f1-micro",
6+
"dataDiskSizeGb": "10",
7+
"ipConfiguration": {
8+
"ipv4Enabled": false,
9+
"privateNetwork": "",
10+
"pscConfig": {
11+
"pscEnabled": true,
12+
"allowedConsumerProjects": [],
13+
"pscAutoConnections": []
14+
}
15+
},
16+
"backupConfiguration": {
17+
"enabled": true,
18+
"startTime": "05:00",
19+
"binaryLogEnabled": true
20+
},
21+
"availabilityType": "REGIONAL"
22+
}
23+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"priority": 1000,
3+
"direction": "INGRESS",
4+
"disabled": false,
5+
"description": "Default INGRESS firewall rule settings. Customize as needed for specific rules.",
6+
"logConfig": {
7+
"enable": true
8+
},
9+
"allowed": [
10+
{
11+
"IPProtocol": "tcp",
12+
"ports": ["_SPECIFY_TCP_PORTS_HERE_"]
13+
}
14+
],
15+
"denied": []
16+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"loadBalancingScheme": "INTERNAL",
3+
"networkTier": "PREMIUM"
4+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"initialClusterVersion": "1.30",
3+
"nodePools": [
4+
{
5+
"name": "default-pool",
6+
"initialNodeCount": 1,
7+
"config": {
8+
"machineType": "e2-medium"
9+
}
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)