fix workflow
This commit is contained in:
parent
c5dd91d112
commit
2d552e3ff9
6 changed files with 2 additions and 16 deletions
50
misc/a3_nodepool.tf
Normal file
50
misc/a3_nodepool.tf
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
resource "google_container_node_pool" "h100_node_pool" {
|
||||
name = "h100-analyst-pool"
|
||||
location = "us-central1-a"
|
||||
cluster = google_container_cluster.primary.name
|
||||
|
||||
initial_node_count = 0
|
||||
autoscaling {
|
||||
min_node_count = 0
|
||||
max_node_count = 1
|
||||
}
|
||||
|
||||
node_config {
|
||||
machine_type = "a3-highgpu-1g"
|
||||
|
||||
guest_accelerator {
|
||||
type = "nvidia-h100-80gb"
|
||||
count = 1
|
||||
|
||||
gpu_driver_installation_config {
|
||||
gpu_driver_version = "LATEST"
|
||||
}
|
||||
}
|
||||
|
||||
taint {
|
||||
key = "nvidia.com/gpu-h100"
|
||||
value = "present"
|
||||
effect = "NO_SCHEDULE"
|
||||
}
|
||||
|
||||
labels = {
|
||||
"accelerator" = "h100-single"
|
||||
"cloud.google.com/gke-accelerator" = "nvidia-h100-80gb"
|
||||
}
|
||||
disk_size_gb = 200
|
||||
disk_type = "pd-ssd"
|
||||
spot = true
|
||||
|
||||
oauth_scopes = [
|
||||
"https://www.googleapis.com/auth/cloud-platform"]
|
||||
|
||||
metadata = {
|
||||
disable-legacy-endpoints = "true"
|
||||
}
|
||||
}
|
||||
|
||||
management {
|
||||
auto_repair = true
|
||||
auto_upgrade = true
|
||||
}
|
||||
}
|
||||
16
misc/flux.tf
Normal file
16
misc/flux.tf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
terraform {
|
||||
required_version = ">= 1.7.0"
|
||||
|
||||
required_providers {
|
||||
flux = {
|
||||
source = "fluxcd/flux"
|
||||
version = ">= 1.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
resource "flux_bootstrap_git" "this" {
|
||||
|
||||
embedded_manifests = true
|
||||
path = "clusters/devops-lab"
|
||||
depends_on = [google_container_cluster.primary]
|
||||
}
|
||||
21
misc/helm.tf
Normal file
21
misc/helm.tf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
resource "helm_release" "cilium" {
|
||||
name = "cilium"
|
||||
repository = "https://helm.cilium.io"
|
||||
chart = "cilium"
|
||||
namespace = "kube-system"
|
||||
version = "1.18.5"
|
||||
values = [
|
||||
yamlencode({
|
||||
ingressController = {
|
||||
enabled = true
|
||||
default = true
|
||||
}
|
||||
hubble = {
|
||||
enabled = true
|
||||
relay = { enabled = true }
|
||||
ui = { enabled = true }
|
||||
}
|
||||
})
|
||||
]
|
||||
}
|
||||
|
||||
12
misc/immediate-backup.yaml
Normal file
12
misc/immediate-backup.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: ScheduledBackup
|
||||
metadata:
|
||||
name: immediate-full-backup # Can be any name; will be deleted later if one-off
|
||||
namespace: customer1
|
||||
spec:
|
||||
schedule: "0 0 1 1 *"
|
||||
immediate: true # ← This triggers the backup RIGHT NOW
|
||||
suspend: false
|
||||
backupOwnerReference: self # Or 'cluster' — 'self' is fine for one-off
|
||||
cluster:
|
||||
name: customer1-pgdb # Your Cluster name
|
||||
Loading…
Reference in a new issue