Skip to content

Commit

Permalink
feat: Bump ai-navigator-cluster-info chart version to 0.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
rajgitnutanix committed Dec 10, 2024
1 parent 09693a3 commit d299a04
Show file tree
Hide file tree
Showing 7 changed files with 267 additions and 0 deletions.
1 change: 1 addition & 0 deletions licenses.d2iq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Check failure on line 7 in licenses.d2iq.yaml

View workflow job for this annotation

GitHub Actions / Check licenses.d2iq.yaml

No mapping for image "cr.weaviate.io/semitechnologies/weaviate:1.27.6"

Check failure on line 7 in licenses.d2iq.yaml

View workflow job for this annotation

GitHub Actions / Check licenses.d2iq.yaml

No mapping for image "docker.io/bitnami/postgresql:15.9.0-debian-12-r0"

Check failure on line 7 in licenses.d2iq.yaml

View workflow job for this annotation

GitHub Actions / Check licenses.d2iq.yaml

No mapping for image "cr.weaviate.io/semitechnologies/weaviate:1.27.6"

Check failure on line 7 in licenses.d2iq.yaml

View workflow job for this annotation

GitHub Actions / Check licenses.d2iq.yaml

No mapping for image "docker.io/bitnami/postgresql:15.9.0-debian-12-r0"

Check failure on line 7 in licenses.d2iq.yaml

View workflow job for this annotation

GitHub Actions / Check licenses.d2iq.yaml

No mapping for image "cr.weaviate.io/semitechnologies/weaviate:1.27.6"

Check failure on line 7 in licenses.d2iq.yaml

View workflow job for this annotation

GitHub Actions / Check licenses.d2iq.yaml

No mapping for image "docker.io/bitnami/postgresql:15.9.0-debian-12-r0"
- container_image: ghcr.io/mesosphere/dkp-container-images/cr.fluentbit.io/fluent/fluent-bit:2.2.3-d2iq.1
Expand Down
115 changes: 115 additions & 0 deletions services/ai-navigator-app/0.2.9/ai-navigator-app.yaml
Original file line number Diff line number Diff line change
@@ -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
95 changes: 95 additions & 0 deletions services/ai-navigator-app/0.2.9/defaults/cm.yaml
Original file line number Diff line number Diff line change
@@ -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}
5 changes: 5 additions & 0 deletions services/ai-navigator-app/0.2.9/defaults/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cm.yaml
20 changes: 20 additions & 0 deletions services/ai-navigator-app/0.2.9/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions services/ai-navigator-app/0.2.9/helmrelease/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions services/ai-navigator-app/0.2.9/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ai-navigator-app.yaml
- helmrelease.yaml

0 comments on commit d299a04

Please sign in to comment.