From d299a042b75c90a0072fdf9f87db485fedff0579 Mon Sep 17 00:00:00 2001 From: rajgitnutanix Date: Tue, 10 Dec 2024 14:53:44 +0530 Subject: [PATCH] feat: Bump ai-navigator-cluster-info chart version to 0.2.9 --- licenses.d2iq.yaml | 1 + .../0.2.9/ai-navigator-app.yaml | 115 ++++++++++++++++++ .../ai-navigator-app/0.2.9/defaults/cm.yaml | 95 +++++++++++++++ .../0.2.9/defaults/kustomization.yaml | 5 + .../ai-navigator-app/0.2.9/helmrelease.yaml | 20 +++ .../0.2.9/helmrelease/helmrelease.yaml | 26 ++++ .../ai-navigator-app/0.2.9/kustomization.yaml | 5 + 7 files changed, 267 insertions(+) create mode 100644 services/ai-navigator-app/0.2.9/ai-navigator-app.yaml create mode 100644 services/ai-navigator-app/0.2.9/defaults/cm.yaml create mode 100644 services/ai-navigator-app/0.2.9/defaults/kustomization.yaml create mode 100644 services/ai-navigator-app/0.2.9/helmrelease.yaml create mode 100644 services/ai-navigator-app/0.2.9/helmrelease/helmrelease.yaml create mode 100644 services/ai-navigator-app/0.2.9/kustomization.yaml diff --git a/licenses.d2iq.yaml b/licenses.d2iq.yaml index 6ab16ba19..33e513b97 100644 --- a/licenses.d2iq.yaml +++ b/licenses.d2iq.yaml @@ -2,6 +2,7 @@ ignore: - ghcr.io/mesosphere/dkp-container-images/docker.io/mesosphere/grafana-plugins:v0.0.1-d2iq.0 - docker.io/mesosphere/trivy-bundles:0.56.2-20241104T225447Z - docker.io/library/alpine:3.20.3 + resources: - container_image: ghcr.io/mesosphere/dkp-container-images/cr.fluentbit.io/fluent/fluent-bit:2.2.3-d2iq.1 diff --git a/services/ai-navigator-app/0.2.9/ai-navigator-app.yaml b/services/ai-navigator-app/0.2.9/ai-navigator-app.yaml new file mode 100644 index 000000000..6e6afa458 --- /dev/null +++ b/services/ai-navigator-app/0.2.9/ai-navigator-app.yaml @@ -0,0 +1,115 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: ai-navigator-app + namespace: ${releaseNamespace} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: ai-navigator-app +rules: + - apiGroups: ["kommander.mesosphere.io"] + resources: ["licenses"] + verbs: ["get", "list"] + - apiGroups: [""] + resources: ["secrets", "nodes"] + verbs: ["get", "list"] + - apiGroups: [ "apiextensions.k8s.io" ] + resources: [ "customresourcedefinitions" ] + verbs: ["get", "list"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: ai-navigator-app +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: ai-navigator-app +subjects: + - kind: ServiceAccount + name: ai-navigator-app + namespace: ${releaseNamespace} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: ai-navigator-app-config + namespace: ${releaseNamespace} +data: + CHATBOT_URL: "https://chatbot.api.d2iq.com/v1/chat" + AUTHORIZER_URL: "https://auth.api.d2iq.com" + LICENSE_NAMESPACE: ${releaseNamespace} +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ai-navigator-app + namespace: ${releaseNamespace} + labels: + app: ai-navigator-app +spec: + replicas: 1 + selector: + matchLabels: + app: ai-navigator-app + template: + metadata: + labels: + app: ai-navigator-app + spec: + priorityClassName: dkp-high-priority + serviceAccountName: ai-navigator-app + containers: + - name: ai-navigator-app + image: mesosphere/ai-navigator-app:v0.2.0 + envFrom: + - configMapRef: + name: ai-navigator-app-config + ports: + - containerPort: 8080 + name: http + readinessProbe: + httpGet: + path: /healthz + port: 8080 + scheme: HTTP + livenessProbe: + httpGet: + path: /healthz + port: 8080 + scheme: HTTP + initialDelaySeconds: 60 + timeoutSeconds: 30 + failureThreshold: 10 + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + cpu: 300m + memory: 256Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault +--- +apiVersion: v1 +kind: Service +metadata: + name: ai-navigator-app + namespace: ${releaseNamespace} +spec: + selector: + app: ai-navigator-app + ports: + - name: service-port + protocol: TCP + port: 80 + targetPort: http diff --git a/services/ai-navigator-app/0.2.9/defaults/cm.yaml b/services/ai-navigator-app/0.2.9/defaults/cm.yaml new file mode 100644 index 000000000..3cf9ece0e --- /dev/null +++ b/services/ai-navigator-app/0.2.9/defaults/cm.yaml @@ -0,0 +1,95 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: ai-navigator-app-0.2.9-d2iq-defaults + namespace: ${releaseNamespace} +data: + values.yaml: | + priorityClassName: dkp-high-priority + # api.enabled enables the collector service as a whole - will not install anything if set to false + api: + enabled: true + + record_manager: + driver_name: "postgresql" + username: "postgres" + port: 5432 + database: record-manager + + # Default values for subcharts + weaviate: + enabled: true + globalPriorityClassName: dkp-high-priority + service: + type: ClusterIP + initContainers: + sysctlInitContainer: + image: + tag: 3.20.3 + storage: + size: 5Gi + + postgresql: + enabled: true + primary: + priorityClassName: dkp-high-priority + initdb: + scriptsConfigMap: ai-navigator-cluster-info-api-postgresql-initdb + readReplicas: + priorityClassName: dkp-high-priority + + # Default values for cluster-info-api + replicaCount: 1 + + image: + pullPolicy: IfNotPresent + imagePullSecrets: [] + nameOverride: "" + fullnameOverride: "" + + serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + + podAnnotations: {} + + securityContext: + capabilities: + drop: + - ALL + readOnlyRootFilesystem: false + allowPrivilegeEscalation: false + runAsNonRoot: true + runAsUser: 1000 + + service: + type: ClusterIP + port: 8080 + + resources: + limits: + cpu: 4000m + memory: 4Gi + requests: + cpu: 250m + memory: 1Gi + + initContainerResources: + limits: + cpu: 500m + memory: 4Gi + requests: + cpu: 100m + memory: 1Gi + + nodeSelector: {} + + tolerations: [] + + affinity: {} + kubectlImage: ${kubetoolsImageRepository:=bitnami/kubectl}:${kubetoolsImageTag:=1.30.5} diff --git a/services/ai-navigator-app/0.2.9/defaults/kustomization.yaml b/services/ai-navigator-app/0.2.9/defaults/kustomization.yaml new file mode 100644 index 000000000..fc857539d --- /dev/null +++ b/services/ai-navigator-app/0.2.9/defaults/kustomization.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- cm.yaml diff --git a/services/ai-navigator-app/0.2.9/helmrelease.yaml b/services/ai-navigator-app/0.2.9/helmrelease.yaml new file mode 100644 index 000000000..ee53f564d --- /dev/null +++ b/services/ai-navigator-app/0.2.9/helmrelease.yaml @@ -0,0 +1,20 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: ai-navigator-app-helmrelease + namespace: ${releaseNamespace} +spec: + force: false + interval: 6h + path: ./services/ai-navigator-app/0.2.9/helmrelease + postBuild: + substitute: + releaseNamespace: ${releaseNamespace} + prune: true + retryInterval: 1m + sourceRef: + kind: GitRepository + name: management + namespace: kommander-flux + timeout: 1m + wait: true diff --git a/services/ai-navigator-app/0.2.9/helmrelease/helmrelease.yaml b/services/ai-navigator-app/0.2.9/helmrelease/helmrelease.yaml new file mode 100644 index 000000000..2e82df83a --- /dev/null +++ b/services/ai-navigator-app/0.2.9/helmrelease/helmrelease.yaml @@ -0,0 +1,26 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta2 +kind: HelmRelease +metadata: + name: ai-navigator-app + namespace: ${releaseNamespace} +spec: + chart: + spec: + chart: ai-navigator-cluster-info-api + sourceRef: + kind: HelmRepository + name: mesosphere.github.io-ai-navigator-cluster-info-api-charts + namespace: kommander-flux + version: 0.2.9 + install: + remediation: + retries: 30 + interval: 15s + releaseName: ai-navigator-cluster-info-api + targetNamespace: ${releaseNamespace} + upgrade: + remediation: + retries: 30 + valuesFrom: + - kind: ConfigMap + name: ai-navigator-app-0.2.9-d2iq-defaults diff --git a/services/ai-navigator-app/0.2.9/kustomization.yaml b/services/ai-navigator-app/0.2.9/kustomization.yaml new file mode 100644 index 000000000..e04d42592 --- /dev/null +++ b/services/ai-navigator-app/0.2.9/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ai-navigator-app.yaml + - helmrelease.yaml