CAST AI | Options Memo CSU-5401 · Confidential
Reference: CSU-5401 — Azure Container Registry / TLS handshake follow-up
| Reference | CSU-5401 (follow-up) |
|---|---|
| Customer | BlackRock |
| Cluster ID | fc5dac97-6e52-4d16-a6b1-ad4d1bcf8754 |
| --- | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: castai-agent | |
| --- | |
| apiVersion: source.toolkit.fluxcd.io/v1 | |
| kind: HelmRepository | |
| metadata: | |
| name: castai-helm |
| module "castai-eks-cluster" { | |
| source = "castai/eks-cluster/castai" | |
| workload_scaling_policies = { | |
| resiliency = { | |
| name = "resiliency" | |
| apply_type = "DEFERRED" | |
| management_option = "READ_ONLY" | |
| cpu = { | |
| function = "QUANTILE" |
| --- | |
| apiVersion: pod-mutations.cast.ai/v1 | |
| kind: PodMutation | |
| metadata: | |
| name: 1-castai-pod-mutator-argocd-workflow-pose-graph | |
| spec: | |
| filter: | |
| pod: {} | |
| workload: {} | |
| filterV2: |
| --- | |
| apiVersion: pod-mutations.cast.ai/v1 | |
| kind: PodMutation | |
| metadata: | |
| name: castai-pod-mutator-argocd-workflow-pose-graph | |
| spec: | |
| filter: | |
| pod: {} | |
| workload: {} | |
| filterV2: |
| --- | |
| apiVersion: pod-mutations.cast.ai/v1 | |
| kind: PodMutation | |
| metadata: | |
| name: castai-pod-mutator-argocd-workflow | |
| spec: | |
| filter: | |
| pod: {} | |
| workload: {} |
| data "google_compute_network" "my_vpc" { | |
| name = "my-vpc-name" | |
| project = "my-gcp-project" | |
| } | |
| data "google_compute_subnetwork" "my_subnet" { | |
| name = "my-subnet-name" | |
| region = "us-central1" | |
| project = "my-gcp-project" | |
| } |
| data "google_secret_manager_secret_version" "castai_api_key" { | |
| project = "my-gcp-project" | |
| secret = "my-secret-name" | |
| version = "latest" # or a specific version like "1", "2", etc. | |
| } | |
| data.google_secret_manager_secret_version.castai_api_key.secret_data |
| kubectl get volumeattachments -o json | \ | |
| jq -r ' | |
| [.items[] | select(.status.attached==true) | .spec.nodeName] | | |
| group_by(.) | | |
| map({node: .[0], attached: length}) | | |
| .[] | |
| ' | \ | |
| while read -r line; do | |
| node=$(echo "$line" | jq -r '.node') | |
| attached=$(echo "$line" | jq -r '.attached') |
| #!/bin/bash | |
| echo "NODE | ATTACHED | LIMIT | REMAINING | STATUS" | |
| echo "-----+----------+-------+-----------+-------" | |
| # Get attached volume count per node | |
| kubectl get volumeattachments -o json | jq -r ' | |
| [.items[] | select(.status.attached==true) | .spec.nodeName] | | |
| group_by(.) | map({node: .[0], count: length}) | .[] | | |
| "\(.node) \(.count)" | |
| ' | while read node count; do |