Last active
July 16, 2024 12:51
-
-
Save JulienBreux/52403c9eb665b908ae7954e0f34d7763 to your computer and use it in GitHub Desktop.
Revisions
-
JulienBreux revised this gist
Jul 16, 2024 . 3 changed files with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ### Machine - Family `t2d-standard-1` (🔗 [Tau T2D machine types](https://cloud.google.com/compute/docs/general-purpose-machines#t2d_machine_types)) - vCPU `1` - Memory `4 GB` - Maximum egress bandwidth (Gbps) `10` File renamed without changes.File renamed without changes. -
JulienBreux revised this gist
Jul 16, 2024 . 3 changed files with 5 additions and 38 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,3 +6,7 @@ - vCPU `1` - Memory `4 GB` - Maximum egress bandwidth (Gbps) `10` ### Useful commands - `kubectl scale --replicas=4 deploy/nginx` This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ kind: Deployment metadata: name: nginx spec: replicas: 4 selector: matchLabels: pod: nginx-pod This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,37 +0,0 @@ -
JulienBreux revised this gist
Jul 16, 2024 . 2 changed files with 16 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -21,9 +21,11 @@ spec: command: ["sleep"] args: ["infinity"] resources: limits: cpu: 250m ephemeral-storage: 1Gi memory: 950M requests: cpu: 250m ephemeral-storage: 1Gi memory: 950M This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -19,9 +19,11 @@ spec: - name: nginx image: nginx resources: limits: cpu: 250m ephemeral-storage: 1Gi memory: 950M requests: cpu: 250m ephemeral-storage: 1Gi memory: 950M -
JulienBreux revised this gist
Jul 16, 2024 . 2 changed files with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -22,5 +22,8 @@ spec: args: ["infinity"] resources: requests: cpu: 200m memory: 950M limits: cpu: 200m memory: 950M This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -20,5 +20,8 @@ spec: image: nginx resources: requests: cpu: 200m memory: 950M limits: cpu: 200m memory: 950M -
JulienBreux revised this gist
Jul 16, 2024 . No changes.There are no files selected for viewing
-
JulienBreux revised this gist
Jul 16, 2024 . 2 changed files with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Balloon pod ### Machine File renamed without changes. -
JulienBreux revised this gist
Jul 16, 2024 . 1 changed file with 24 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ --- apiVersion: apps/v1 kind: Deployment metadata: name: nginx spec: replicas: 2 selector: matchLabels: pod: nginx-pod template: metadata: labels: pod: nginx-pod spec: priorityClassName: default-priority terminationGracePeriodSeconds: 0 containers: - name: nginx image: nginx resources: requests: cpu: 200m memory: 950M -
JulienBreux created this gist
Jul 16, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # Baloon pod ### Machine - Family `t2d-standard-1` - vCPU `1` - Memory `4 GB` - Maximum egress bandwidth (Gbps) `10` This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ --- apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: name: balloon-priority value: -10 preemptionPolicy: Never globalDefault: false description: "Balloon priority." This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ --- apiVersion: apps/v1 kind: Deployment metadata: name: balloon spec: replicas: 4 selector: matchLabels: pod: balloon-pod template: metadata: labels: pod: balloon-pod spec: priorityClassName: balloon-priority terminationGracePeriodSeconds: 0 containers: - name: ubuntu image: ubuntu command: ["sleep"] args: ["infinity"] resources: requests: cpu: 200m memory: 950M This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ --- apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: name: default-priority value: 0 preemptionPolicy: PreemptLowerPriority globalDefault: true description: "Global default priority." This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ # First node ``` Capacity: cpu: 1 ephemeral-storage: 98831908Ki hugepages-1Gi: 0 hugepages-2Mi: 0 memory: 4018368Ki pods: 110 Allocatable: cpu: 940m ephemeral-storage: 47060071478 hugepages-1Gi: 0 hugepages-2Mi: 0 memory: 2872512Ki pods: 110 ``` # Second node ``` Capacity: cpu: 1 ephemeral-storage: 98831908Ki hugepages-1Gi: 0 hugepages-2Mi: 0 memory: 4018368Ki pods: 110 Allocatable: cpu: 940m ephemeral-storage: 47060071478 hugepages-1Gi: 0 hugepages-2Mi: 0 memory: 2872512Ki pods: 110 ```