diff --git a/charts/cdl-dataset/templates/model_claim.yaml.j2 b/charts/cdl-dataset/templates/model_claim.yaml.j2 index aa7bef9..1e875eb 100644 --- a/charts/cdl-dataset/templates/model_claim.yaml.j2 +++ b/charts/cdl-dataset/templates/model_claim.yaml.j2 @@ -16,7 +16,7 @@ spec: deletionPolicy: {{- toYaml .Values.deletionPolicy | nindent 4 }} resources: - {{- toYaml .Values.claim.resources | nindent 4 }} + {{- toYaml .Values.resources | nindent 4 }} storage: ObjectStorage storageName: {{- toYaml .Values.static.targetStorageName | nindent 4 }} diff --git a/charts/cdl-dataset/templates/model_storage_binding.yaml.j2 b/charts/cdl-dataset/templates/model_storage_binding.yaml.j2 index d9a7423..55e97a9 100644 --- a/charts/cdl-dataset/templates/model_storage_binding.yaml.j2 +++ b/charts/cdl-dataset/templates/model_storage_binding.yaml.j2 @@ -11,7 +11,7 @@ spec: {{- toYaml .Values.deletionPolicy | nindent 4 }} model: {{ .Release.Name }} resources: - {{- toYaml .Values.claim.resources | nindent 4 }} + {{- toYaml .Values.resources | nindent 4 }} storage: {{- if .Values.static.sourceStorageName }} cloned: diff --git a/charts/cdl-endpoint/.helmignore b/charts/cdl-endpoint/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/cdl-endpoint/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/cdl-endpoint/.schema.yaml b/charts/cdl-endpoint/.schema.yaml new file mode 100644 index 0000000..e997273 --- /dev/null +++ b/charts/cdl-endpoint/.schema.yaml @@ -0,0 +1,13 @@ +--- +input: + - values.yaml + +draft: 2020 +indent: 2 +output: values.schema.json + +schemaRoot: + id: https://smartx-team.github.io/mobilex-api/charts/nvidia-isaac-sim + title: NVIDIA Issac-Sim Schema + description: Schema for NVIDIA Issac-Sim Helm Chart + additionalProperties: true diff --git a/charts/cdl-endpoint/Chart.yaml b/charts/cdl-endpoint/Chart.yaml new file mode 100644 index 0000000..3c6cec2 --- /dev/null +++ b/charts/cdl-endpoint/Chart.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: v2 +name: cdl-endpoint +description: Convenient Connected Data Lake endpoint instance deployment tool + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.2 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "latest-devel" diff --git a/charts/cdl-endpoint/README.md b/charts/cdl-endpoint/README.md new file mode 100644 index 0000000..1796375 --- /dev/null +++ b/charts/cdl-endpoint/README.md @@ -0,0 +1,30 @@ +# Connected Data Lake instance Helm Chart + +## Usage + +```bash +# Register the MobileX API repository +helm repo add mobilex "https://smartx-team.github.io/mobilex-api" + +# Deploy a Connected Data Lake endpoint instance instance +NAME="object-storage" # NOTE: the name is fixed per namespace! +helm install $NAME "mobilex/cdl-endpoint" \ + --namespace "name-twin" +``` + +## Uninstall + +```bash +NAME="object-storage" # NOTE: the name is fixed per namespace! +helm uninstall $NAME --namespace "name-twin" +``` + +## Validating + +```bash +# Install json schema generator +helm plugin install "https://github.com/losisin/helm-values-schema-json.git" + +# Create a json schema +helm schema +``` diff --git a/charts/cdl-endpoint/templates/NOTES.txt b/charts/cdl-endpoint/templates/NOTES.txt new file mode 100644 index 0000000..22d0448 --- /dev/null +++ b/charts/cdl-endpoint/templates/NOTES.txt @@ -0,0 +1 @@ +Installed! diff --git a/charts/cdl-endpoint/templates/_helpers.tpl b/charts/cdl-endpoint/templates/_helpers.tpl new file mode 100644 index 0000000..b4952af --- /dev/null +++ b/charts/cdl-endpoint/templates/_helpers.tpl @@ -0,0 +1,84 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "cdl-endpoint.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "cdl-endpoint.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "cdl-endpoint.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "cdl-endpoint.labels" -}} +dash.ulagbulag.io/modelstorage-type: "object-storage" +helm.sh/chart: {{ include "cdl-endpoint.chart" . }} +{{ include "cdl-endpoint.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "cdl-endpoint.selectorLabels" -}} +app.kubernetes.io/name: {{ include "cdl-endpoint.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "cdl-endpoint.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "cdl-endpoint.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +Create the name of the clusterrole to use +*/}} +{{- define "cdl-endpoint.clusterRoleName" -}} +{{- printf "dash:cdl-endpoint:%s:%s" .Release.Namespace .Release.Name | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create the name of the ingressclass to use +*/}} +{{- define "cdl-endpoint.ingressClassName" -}} +{{- default (printf "dash.%s.%s" .Release.Name .Release.Namespace) .Values.ingressClassNameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create the name of the ingress controller to use +*/}} +{{- define "cdl-endpoint.ingressControllerName" -}} +{{- default (printf "k8s.io/dash/%s/%s" .Release.Name .Release.Namespace) .Values.ingressControllerNameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} diff --git a/charts/cdl-endpoint/templates/configmap.yaml.j2 b/charts/cdl-endpoint/templates/configmap.yaml.j2 new file mode 100644 index 0000000..ba9b121 --- /dev/null +++ b/charts/cdl-endpoint/templates/configmap.yaml.j2 @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ .Release.Name }} + labels: + {{- include "cdl-endpoint.labels" . | nindent 4 }} +immutable: true +data: + allow-snippet-annotations: "true" + {{- with .Values.ingress.extraConfigs }} + {{- toYaml . | nindent 2 }} + {{- end }} diff --git a/charts/cdl-endpoint/templates/deployment.yaml.j2 b/charts/cdl-endpoint/templates/deployment.yaml.j2 new file mode 100644 index 0000000..789fca8 --- /dev/null +++ b/charts/cdl-endpoint/templates/deployment.yaml.j2 @@ -0,0 +1,117 @@ +{{/* + The release name should be fixed. +*/}} +{{- if not (contains "object-storage" .Release.Name) }} +{{- fail "The helm release name should be \"object-storage\"" }} +{{- end }} + --- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Release.Name }} + labels: + {{- include "cdl-endpoint.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + {{- include "cdl-endpoint.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + prometheus.io/port: "10254" + prometheus.io/scrape: "true" + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "cdl-endpoint.labels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + affinity: + {{- toYaml .Values.affinity | nindent 8 }} + enableServiceLinks: false + {{- with .Values.image.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + nodeSelector: + {{- toYaml .Values.nodeSelector | nindent 8 }} + priorityClassName: {{ .Values.priorityClassName }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + serviceAccount: {{ include "cdl-endpoint.serviceAccountName" . }} + terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} + + containers: + - name: controller + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + args: + - "/nginx-ingress-controller" + - "--publish-service=$(POD_NAMESPACE)/{{ .Release.Name }}" + - "--election-id=ingress-nginx-leader" + - "--controller-class={{ include "cdl-endpoint.ingressControllerName" . }}" + - "--ingress-class={{ include "cdl-endpoint.ingressClassName" . }}" + - "--configmap=$(POD_NAMESPACE)/{{ .Release.Name }}" + env: + - name: POD_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.name + - name: POD_NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + - name: LD_PRELOAD + value: /usr/local/lib/libmimalloc.so + {{- with .Values.env }} + {{- toYaml . | nindent 12 }} + {{- end }} + lifecycle: + preStop: + exec: + command: + - /wait-shutdown + livenessProbe: + failureThreshold: 5 + httpGet: + path: /healthz + port: 10254 + scheme: HTTP + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + ports: + - name: http + protocol: TCP + containerPort: 80 + - name: https + protocol: TCP + containerPort: 443 + - name: metrics + protocol: TCP + containerPort: 10254 + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + readinessProbe: + failureThreshold: 3 + httpGet: + path: /healthz + port: 10254 + scheme: HTTP + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + {{- toYaml .Values.extraVolumeMounts | nindent 12 }} + volumes: + {{- toYaml .Values.extraVolumes | nindent 8 }} diff --git a/charts/cdl-endpoint/templates/ingress.yaml.j2 b/charts/cdl-endpoint/templates/ingress.yaml.j2 new file mode 100644 index 0000000..70aef2a --- /dev/null +++ b/charts/cdl-endpoint/templates/ingress.yaml.j2 @@ -0,0 +1,22 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ .Release.Name }} + labels: + {{- include "cdl-endpoint.labels" . | nindent 4 }} + {{- with .Values.ingress.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + ingressClassName: {{ include "cdl-endpoint.ingressClassName" . }} + rules: + - http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: minio + port: + name: http-minio diff --git a/charts/cdl-endpoint/templates/ingress_class.yaml.j2 b/charts/cdl-endpoint/templates/ingress_class.yaml.j2 new file mode 100644 index 0000000..57342dd --- /dev/null +++ b/charts/cdl-endpoint/templates/ingress_class.yaml.j2 @@ -0,0 +1,9 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: IngressClass +metadata: + name: {{ include "cdl-endpoint.ingressClassName" . }} + labels: + {{- include "cdl-endpoint.labels" . | nindent 4 }} +spec: + controller: {{ include "cdl-endpoint.ingressControllerName" . }} diff --git a/charts/cdl-endpoint/templates/service.yaml.j2 b/charts/cdl-endpoint/templates/service.yaml.j2 new file mode 100644 index 0000000..7e0f823 --- /dev/null +++ b/charts/cdl-endpoint/templates/service.yaml.j2 @@ -0,0 +1,50 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ .Release.Name }} + annotations: + coredns.io/hostname: {{ .Values.ingress.hostname }} + labels: + ark.ulagbulag.io/is-external: "true" + {{- if .Values.ingress.hostname }} + {{- end }} + {{- include "cdl-endpoint.labels" . | nindent 4 }} +spec: + loadBalancerIP: {{ .Values.service.endpoint.loadBalancerIP }} + type: {{ .Values.service.endpoint.type }} + selector: + {{- include "cdl-endpoint.selectorLabels" . | nindent 4 }} + ports: + - name: http + protocol: TCP + port: {{ .Values.service.endpoint.ports.http }} + targetPort: 80 + - name: vnc + protocol: TCP + port: {{ .Values.service.endpoint.ports.https }} + targetPort: 443 +--- +apiVersion: v1 +kind: Service +metadata: + name: "{{ .Release.Name }}-metrics" + annotations: + prometheus.io/port: "10254" + prometheus.io/scrape: "true" + labels: + ark.ulagbulag.io/is-external: "true" + {{- include "cdl-endpoint.labels" . | nindent 4 }} + {{- with .Values.serviceMonitor.matchLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + loadBalancerIP: {{ .Values.service.metrics.loadBalancerIP }} + type: {{ .Values.service.metrics.type }} + selector: + {{- include "cdl-endpoint.selectorLabels" . | nindent 4 }} + ports: + - name: metrics + protocol: TCP + port: {{ .Values.service.metrics.port }} + targetPort: 10254 diff --git a/charts/cdl-endpoint/templates/service_monitor.yaml.j2 b/charts/cdl-endpoint/templates/service_monitor.yaml.j2 new file mode 100644 index 0000000..e0d949c --- /dev/null +++ b/charts/cdl-endpoint/templates/service_monitor.yaml.j2 @@ -0,0 +1,20 @@ +{{- if eq .Values.serviceMonitor.enabled true }} +--- +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: {{ .Release.Name }} + labels: + {{- include "cdl-endpoint.labels" . | nindent 4 }} +spec: + endpoints: + - port: metrics + interval: + {{- toYaml .Values.serviceMonitor.interval | nindent 8 }} + namespaceSelector: + matchNames: + - {{ .Release.Namespace }} + selector: + matchLabels: + {{- toYaml .Values.serviceMonitor.matchLabels | nindent 6 }} +{{- end }} diff --git a/charts/cdl-endpoint/templates/serviceaccount.yaml.j2 b/charts/cdl-endpoint/templates/serviceaccount.yaml.j2 new file mode 100644 index 0000000..6db1bc7 --- /dev/null +++ b/charts/cdl-endpoint/templates/serviceaccount.yaml.j2 @@ -0,0 +1,193 @@ +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "cdl-endpoint.serviceAccountName" . }} + labels: + {{- include "cdl-endpoint.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} + automountServiceAccountToken: {{ .Values.serviceAccount.automount }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: {{ include "cdl-endpoint.serviceAccountName" . }} +rules: + - apiGroups: + - "" + resources: + - configmaps + - endpoints + - pods + - secrets + - services + verbs: + - get + - list + - watch + - apiGroups: + - "" + resources: + - namespaces + verbs: + - get + - apiGroups: + - "" + resources: + - events + verbs: + - create + - patch + - apiGroups: + - coordination.k8s.io + resourceNames: + - ingress-nginx-leader + resources: + - leases + verbs: + - get + - update + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - create + - apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch + - apiGroups: + - networking.k8s.io + resources: + - ingressclasses + verbs: + - get + - list + - watch + - apiGroups: + - networking.k8s.io + resources: + - ingresses + verbs: + - get + - list + - watch + - apiGroups: + - networking.k8s.io + resources: + - ingresses/status + verbs: + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: {{ include "cdl-endpoint.serviceAccountName" . }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ include "cdl-endpoint.serviceAccountName" . }} +subjects: + - apiGroup: "" + kind: ServiceAccount + name: {{ include "cdl-endpoint.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "cdl-endpoint.clusterRoleName" . }} +rules: + - apiGroups: + - "" + resources: + - configmaps + - endpoints + - namespaces + - nodes + - pods + - secrets + - services + verbs: + - list + - watch + - apiGroups: + - "" + resources: + - nodes + verbs: + - get + - apiGroups: + - "" + resources: + - services + verbs: + - get + - list + - watch + - apiGroups: + - "" + resources: + - events + verbs: + - create + - patch + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - list + - watch + - apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - get + - list + - watch + - apiGroups: + - networking.k8s.io + resources: + - ingressclasses + verbs: + - get + - list + - watch + - apiGroups: + - networking.k8s.io + resources: + - ingresses + verbs: + - get + - list + - watch + - apiGroups: + - networking.k8s.io + resources: + - ingresses/status + verbs: + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "cdl-endpoint.clusterRoleName" . }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ include "cdl-endpoint.clusterRoleName" . }} +subjects: + - apiGroup: "" + kind: ServiceAccount + name: {{ include "cdl-endpoint.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} diff --git a/charts/cdl-endpoint/values.yaml b/charts/cdl-endpoint/values.yaml new file mode 100644 index 0000000..384b6ca --- /dev/null +++ b/charts/cdl-endpoint/values.yaml @@ -0,0 +1,143 @@ +--- +# Default values for cdl-endpoint. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 + +image: + repository: registry.k8s.io/ingress-nginx/controller + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: v1.10.0 + +clusterName: ops.openark +nameOverride: "" +fullnameOverride: "" + +affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: node-role.kubernetes.io/kiss-ephemeral-control-plane + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - key: node-role.kubernetes.io/kiss + operator: In + values: + - ControlPlane + weight: 2 + - preference: + matchExpressions: + - key: node-role.kubernetes.io/kiss + operator: In + values: + - Compute + weight: 4 + - preference: + matchExpressions: + - key: node-role.kubernetes.io/kiss + operator: In + values: + - Gateway + weight: 8 + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: node-role.kubernetes.io/kiss + operator: In + values: + - Compute + - ControlPlane + - Desktop + - Gateway + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: dash.ulagbulag.io/modelstorage-type + operator: In + values: + - object-storage + topologyKey: kubernetes.io/hostname + weight: 32 + +env: [] + +ingress: + extraConfigs: {} + hostname: "" + labels: + nginx.ingress.kubernetes.io/proxy-body-size: 100M + nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" + nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" + +ingressClassNameOverride: "" +ingressControllerNameOverride: "" + +nodeSelector: {} +podAnnotations: {} +podLabels: {} +podSecurityContext: {} +priorityClassName: k8s-cluster-critical + +securityContext: + allowPrivilegeEscalation: false + capabilities: + add: + - NET_BIND_SERVICE + drop: + - ALL + readOnlyRootFilesystem: false + runAsNonRoot: true + runAsUser: 101 + +service: + endpoint: + loadBalancerIP: null + type: ClusterIP + ports: + http: 80 + https: 443 + metrics: + loadBalancerIP: null + type: ClusterIP + port: 10254 + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # Automatically mount a ServiceAccount's API credentials? + automount: true + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +serviceMonitor: + enabled: true + interval: 30s + matchLabels: + dash.ulagbulag.io/modelstorage-service: metrics + +resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + limits: + cpu: "8" + memory: 16Gi + # requests: + # cpu: "8" + # memory: 16Gi + +terminationGracePeriodSeconds: 30 + +extraVolumes: [] +extraVolumeMounts: [] diff --git a/charts/data-pond/templates/storage.yaml.j2 b/charts/data-pond/templates/storage.yaml.j2 index 5ec831b..fe5c038 100644 --- a/charts/data-pond/templates/storage.yaml.j2 +++ b/charts/data-pond/templates/storage.yaml.j2 @@ -1,3 +1,11 @@ +{{/* + When owned or shared mode, the release name should be fixed. +*/}} +{{- if or (contains "Owned" .Values.storageType) (contains "Shared" .Values.storageType) }} +{{- if not (contains "object-storage-pool" .Release.Name) }} +{{- fail "The helm release name should be \"object-storage-pool\"" }} +{{- end }} +{{- end }} --- apiVersion: dash.ulagbulag.io/v1alpha1 kind: ModelStorage diff --git a/charts/mobilex-ssh/README.md b/charts/mobilex-ssh/README.md index d002081..f379f33 100644 --- a/charts/mobilex-ssh/README.md +++ b/charts/mobilex-ssh/README.md @@ -1,4 +1,4 @@ -# NVIDIA ISAAC-SIM Helm Chart +# MobileX SSH Helm Chart ## Usage diff --git a/charts/mobilex-ssh/templates/deployment.yaml.j2 b/charts/mobilex-ssh/templates/deployment.yaml.j2 index 4f2a15c..be8f4b0 100644 --- a/charts/mobilex-ssh/templates/deployment.yaml.j2 +++ b/charts/mobilex-ssh/templates/deployment.yaml.j2 @@ -40,8 +40,6 @@ spec: containers: - name: session - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: diff --git a/charts/mobilex-vstation/README.md b/charts/mobilex-vstation/README.md index 0d7fcf4..e903b6a 100644 --- a/charts/mobilex-vstation/README.md +++ b/charts/mobilex-vstation/README.md @@ -1,4 +1,4 @@ -# NVIDIA ISAAC-SIM Helm Chart +# MobileX vStation Helm Chart ## Usage diff --git a/charts/mobilex-vstation/templates/deployment.yaml.j2 b/charts/mobilex-vstation/templates/deployment.yaml.j2 index ad22464..cf3b805 100644 --- a/charts/mobilex-vstation/templates/deployment.yaml.j2 +++ b/charts/mobilex-vstation/templates/deployment.yaml.j2 @@ -77,8 +77,6 @@ spec: subPath: home containers: - name: desktop-environment - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: diff --git a/charts/nvidia-isaac-sim/templates/deployment.yaml.j2 b/charts/nvidia-isaac-sim/templates/deployment.yaml.j2 index 4c9b8ba..6dc0e60 100644 --- a/charts/nvidia-isaac-sim/templates/deployment.yaml.j2 +++ b/charts/nvidia-isaac-sim/templates/deployment.yaml.j2 @@ -37,8 +37,6 @@ spec: containers: - name: kit - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: