-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: AI Navigator cluster info app changes (#1706)
* feat: Helm charts for api and agent * feat: Add alpine image to mapping file --------- Co-authored-by: Aditya Jariwala <[email protected]>
- Loading branch information
1 parent
decd816
commit 77116a6
Showing
16 changed files
with
337 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ai-navigator-cluster-info-api-0.2.0-d2iq-defaults | ||
namespace: ${releaseNamespace} | ||
data: | ||
values.yaml: | | ||
# api.enabled enables the collector service as a whole - will not install anything if set to false | ||
api: | ||
enabled: true | ||
# Default values for configmap | ||
modelSettings: | ||
model_name: thenlper/gte-large | ||
chunk_size: 2000 | ||
chunk_overlap: 250 | ||
path: /models | ||
volumeSize: 4Gi | ||
vector_db: | ||
url: http://weaviate | ||
index_name: Cluster_Info | ||
record_manager: | ||
driver_name: "postgresql" | ||
username: "postgres" | ||
port: 5432 | ||
database: record-manager | ||
# Default values for subcharts | ||
weaviate: | ||
enabled: true | ||
service: | ||
type: ClusterIP | ||
image: | ||
tag: 1.21.4 | ||
initContainers: | ||
sysctlInitContainer: | ||
image: | ||
tag: 3.18.4 | ||
securityContext: | ||
runAsUser: 65532 | ||
fsGroup: 65532 | ||
runAsGroup: 65532 | ||
postgresql: | ||
enabled: true | ||
image: | ||
tag: 15.2.0-debian-11-r21 | ||
# Default values for cluster-info-api | ||
replicaCount: 1 | ||
image: | ||
repository: mesosphere/ai-navigator-cluster-info-api | ||
pullPolicy: Always | ||
# Overrides the image tag whose default is the chart appVersion. | ||
tag: "v0.1.0" | ||
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: 1000m | ||
memory: 1Gi | ||
initContainerResources: | ||
limits: | ||
cpu: 500m | ||
memory: 4Gi | ||
requests: | ||
cpu: 100m | ||
memory: 1Gi | ||
nodeSelector: {} | ||
tolerations: [] | ||
affinity: {} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 | ||
kind: Kustomization | ||
metadata: | ||
name: ai-navigator-cluster-info-api-helmrelease | ||
namespace: ${releaseNamespace} | ||
spec: | ||
force: false | ||
interval: 6h | ||
path: ./services/ai-navigator-app/0.2.0/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
26
services/ai-navigator-app/0.2.0/helmrelease/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: ai-navigator-cluster-info-api | ||
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.1.0 | ||
install: | ||
remediation: | ||
retries: 30 | ||
interval: 15s | ||
releaseName: ai-navigator-cluster-info-api | ||
targetNamespace: ${releaseNamespace} | ||
upgrade: | ||
remediation: | ||
retries: 30 | ||
valuesFrom: | ||
- kind: ConfigMap | ||
name: ai-navigator-cluster-info-api-0.2.0-d2iq-defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
services/ai-navigator-cluster-info-agent/0.1.0/defaults/cm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ai-navigator-cluster-info-agent-0.1.0-d2iq-defaults | ||
namespace: ${releaseNamespace} | ||
data: | ||
values.yaml: | | ||
# Default values for configmap | ||
collector: | ||
url: http://ai-navigator-cluster-info-api.kommander.svc/api/v1/documents/collect/ | ||
watchNamespaces: {} | ||
watchGlobalResources: true | ||
# Default values for cluster-info-agent | ||
replicaCount: 1 | ||
image: | ||
repository: mesosphere/ai-navigator-cluster-info-agent | ||
pullPolicy: Always | ||
# Overrides the image tag whose default is the chart appVersion. | ||
tag: "v0.1.0" | ||
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 | ||
resources: | ||
limits: | ||
cpu: 4000m | ||
memory: 4Gi | ||
requests: | ||
cpu: 1000m | ||
memory: 250Mi | ||
nodeSelector: {} | ||
tolerations: [] | ||
affinity: {} |
5 changes: 5 additions & 0 deletions
5
services/ai-navigator-cluster-info-agent/0.1.0/defaults/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
20
services/ai-navigator-cluster-info-agent/0.1.0/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 | ||
kind: Kustomization | ||
metadata: | ||
name: ai-navigator-cluster-info-agent-helmrelease | ||
namespace: ${releaseNamespace} | ||
spec: | ||
force: false | ||
interval: 6h | ||
path: ./services/ai-navigator-cluster-info-agent/0.1.0/helmrelease | ||
postBuild: | ||
substitute: | ||
releaseNamespace: ${releaseNamespace} | ||
prune: true | ||
retryInterval: 1m | ||
sourceRef: | ||
kind: GitRepository | ||
name: management | ||
namespace: kommander-flux | ||
timeout: 5m | ||
wait: true |
26 changes: 26 additions & 0 deletions
26
services/ai-navigator-cluster-info-agent/0.1.0/helmrelease/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: ai-navigator-cluster-info-agent | ||
namespace: ${releaseNamespace} | ||
spec: | ||
chart: | ||
spec: | ||
chart: ai-navigator-cluster-info-agent | ||
sourceRef: | ||
kind: HelmRepository | ||
name: mesosphere.github.io-ai-navigator-cluster-info-agent-charts | ||
namespace: kommander-flux | ||
version: 0.1.0 | ||
install: | ||
remediation: | ||
retries: 30 | ||
interval: 15s | ||
releaseName: ai-navigator-cluster-info-agent | ||
targetNamespace: ${releaseNamespace} | ||
upgrade: | ||
remediation: | ||
retries: 30 | ||
valuesFrom: | ||
- kind: ConfigMap | ||
name: ai-navigator-cluster-info-agent-0.1.0-d2iq-defaults |
4 changes: 4 additions & 0 deletions
4
services/ai-navigator-cluster-info-agent/0.1.0/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- helmrelease.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
displayName: DKP AI Navigator Cluster Info Agent | ||
description: The AI Navigator Cluster Info Agent collects information about the DKP cluster and sends it to the AI Navigator service. | ||
category: | ||
- tools | ||
type: platform | ||
allowMultipleInstances: false | ||
scope: | ||
- workspace | ||
overview: |- | ||
# Overview | ||
The AI Navigator Cluster Info Agent collects information about the DKP cluster and sends it to the AI Navigator service. | ||
## Key Features | ||
### Intuitive Query Processing | ||
The AI Navigator Cluster Info Agent uses natural language processing to understand user queries and provide relevant answers. | ||
### Real-time Troubleshooting Assistance | ||
The AI Navigator Cluster Info Agent provides real-time troubleshooting assistance by analyzing the cluster state and providing cluster specific commands. | ||
### Seamless DKP Integration | ||
Being native to the DKP platform, the AI Navigator ensures users get the most out of their DKP environments by offering insights, best practices, and performance optimization tips. | ||
### Privacy First Approach | ||
Data privacy and security remain paramount, ensuring user trust and compliance. | ||
icon: PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiBmaWxsPSIjMzMwMDcyIi8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMzkzXzEyMzUpIj4KPHBhdGggb3BhY2l0eT0iMC40IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIzLjg3NTEgMTAuMTcxN0MyMC42ODAxIDEwLjE3MTcgMTcuNDkyNSAxMS4yNjExIDE0Ljg5NjYgMTMuNDM5M0MxMy4zMzQyIDE0Ljc1MDMgMTIuMTI2NyAxNi4zNDU1IDExLjI4ODEgMTguMDkyM0MxMS4xNzE3IDE4LjA4MTIgMTEuMDU4NCAxOC4wNTYgMTAuOTM4OSAxOC4wN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