Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding init #597

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions manifests/infrastructure/gpu-operator/HelmRelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: gpu-operator
namespace: cluster-config
spec:
targetNamespace: application
releaseName: gpu-operator
chart:
spec:
chart: gpu-operator
sourceRef:
kind: HelmRepository
name: gpu-operator
namespace: cluster-config
interval: 10m0s
install:
timeout: 20m
remediation:
retries: 5
upgrade:
timeout: 20m
values:
driver.enabled: false
toolkit.enabled: false
operator.runtimeClass: "nvidia-container-runtime"
9 changes: 9 additions & 0 deletions manifests/infrastructure/gpu-operator/HelmRepository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: gpu-operator
namespace: cluster-config
spec:
interval: 30m
url: https://helm.ngc.nvidia.com/nvidia
6 changes: 6 additions & 0 deletions manifests/infrastructure/gpu-operator/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- HelmRelease.yaml
- HelmRepository.yaml
1 change: 1 addition & 0 deletions manifests/infrastructure/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kind: Kustomization
resources:
- rbac.yaml
- ./fortiweb-ingress
- ./gpu-operator
7 changes: 3 additions & 4 deletions terraform/spoke-k8s_cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ resource "azurerm_monitor_data_collection_rule" "this" {
name = "rule-${azurerm_resource_group.azure_resource_group.name}-${azurerm_resource_group.azure_resource_group.location}"
resource_group_name = azurerm_resource_group.azure_resource_group.name
location = azurerm_resource_group.azure_resource_group.location

destinations {
log_analytics {
workspace_resource_id = azurerm_log_analytics_workspace.log_analytics.id
Expand Down Expand Up @@ -165,9 +164,9 @@ resource "azurerm_monitor_data_collection_rule_association" "this" {
}

resource "null_resource" "kube_config" {
#triggers = {
# always_run = timestamp()
#}
triggers = {
kube_config_exists = "${fileexists("~/.kube/config")}"
}
depends_on = [azurerm_kubernetes_cluster.kubernetes_cluster]
provisioner "local-exec" {
command = "echo \"${azurerm_kubernetes_cluster.kubernetes_cluster.kube_config_raw}\" > ~/.kube/config && chmod 600 ~/.kube/config"
Expand Down
Empty file added terraform/sudo
Empty file.
Loading