diff --git a/charts/vald/README.md.gotmpl b/charts/vald/README.md.gotmpl index 4ff60dadc2..c19bd6c522 100644 --- a/charts/vald/README.md.gotmpl +++ b/charts/vald/README.md.gotmpl @@ -14,7 +14,7 @@ Add Vald Helm repository Run the following command to install the chart, - $ helm install --generate-name vald/vald + $ helm install vald-cluster vald/vald Configuration @@ -47,3 +47,23 @@ Configuration ### Parameters {{ template "chart.valuesTable" . }} + + +Miscellaneous +--- + +### Standalone Vald agent NGT deployment + +Each component can be disabled by setting the value `false` to the `[component].enabled` field. +This is useful for deploying only Vald agent NGT pods. + +There is an example yaml [values-agent-ngt-standalone.yaml][agent-ngt-standalone-yaml] to deploy standalone agent NGT. +Please run the following command to install the chart with this values yaml, + + $ helm repo add vald https://vald.vdaas.org/charts + $ helm install --values values-agent-ngt-standalone.yaml vald-agent-ngt vald/vald + +If you'd like to access the agents from out of the Kubernetes cluster, it is recommended to create an [Ingress][k8s-ingress]. + +agent-ngt-standalone-yaml: ./values-agent-ngt-standalone.yaml +k8s-ingress: https://kubernetes.io/docs/concepts/services-networking/ingress/ diff --git a/charts/vald/templates/agent/configmap.yaml b/charts/vald/templates/agent/configmap.yaml index 5a8041443c..77ef380b25 100644 --- a/charts/vald/templates/agent/configmap.yaml +++ b/charts/vald/templates/agent/configmap.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.agent.enabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -33,3 +34,4 @@ data: {{- include "vald.observability" $observability | nindent 6 }} ngt: {{- toYaml .Values.agent.ngt | nindent 6 }} +{{- end }} diff --git a/charts/vald/templates/agent/daemonset.yaml b/charts/vald/templates/agent/daemonset.yaml index 38c6af3945..2d86ea8940 100644 --- a/charts/vald/templates/agent/daemonset.yaml +++ b/charts/vald/templates/agent/daemonset.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.agent.kind "DaemonSet" }} +{{- if and .Values.agent.enabled (eq .Values.agent.kind "DaemonSet") }} apiVersion: apps/v1 kind: DaemonSet metadata: diff --git a/charts/vald/templates/agent/deployment.yaml b/charts/vald/templates/agent/deployment.yaml index e3e80694ec..a9e028f532 100644 --- a/charts/vald/templates/agent/deployment.yaml +++ b/charts/vald/templates/agent/deployment.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.agent.kind "Deployment" }} +{{- if and .Values.agent.enabled (eq .Values.agent.kind "Deployment") }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/charts/vald/templates/agent/hpa.yaml b/charts/vald/templates/agent/hpa.yaml index a3325c3ffd..13ba0cf5a7 100644 --- a/charts/vald/templates/agent/hpa.yaml +++ b/charts/vald/templates/agent/hpa.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.agent.hpa.enabled }} +{{- if and .Values.agent.enabled .Values.agent.hpa.enabled }} apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: diff --git a/charts/vald/templates/agent/pdb.yaml b/charts/vald/templates/agent/pdb.yaml index b0eabee049..ebcff7131c 100644 --- a/charts/vald/templates/agent/pdb.yaml +++ b/charts/vald/templates/agent/pdb.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.agent.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: @@ -22,3 +23,4 @@ spec: selector: matchLabels: app: {{ .Values.agent.name }} +{{- end }} diff --git a/charts/vald/templates/agent/priorityclass.yaml b/charts/vald/templates/agent/priorityclass.yaml index ead9f71717..e6db80b241 100644 --- a/charts/vald/templates/agent/priorityclass.yaml +++ b/charts/vald/templates/agent/priorityclass.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.agent.podPriority.enabled }} +{{- if and .Values.agent.enabled .Values.agent.podPriority.enabled }} apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: diff --git a/charts/vald/templates/agent/statefulset.yaml b/charts/vald/templates/agent/statefulset.yaml index a13ed80d6f..72ede9783b 100644 --- a/charts/vald/templates/agent/statefulset.yaml +++ b/charts/vald/templates/agent/statefulset.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.agent.kind "StatefulSet" }} +{{- if and .Values.agent.enabled (eq .Values.agent.kind "StatefulSet") }} apiVersion: apps/v1 kind: StatefulSet metadata: diff --git a/charts/vald/templates/agent/svc.yaml b/charts/vald/templates/agent/svc.yaml index eb6c594c1e..f1fee19169 100644 --- a/charts/vald/templates/agent/svc.yaml +++ b/charts/vald/templates/agent/svc.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.agent.enabled }} apiVersion: v1 kind: Service metadata: @@ -37,3 +38,4 @@ spec: {{- if .Values.agent.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.agent.externalTrafficPolicy }} {{- end }} +{{- end }} diff --git a/charts/vald/templates/discoverer/clusterrole.yaml b/charts/vald/templates/discoverer/clusterrole.yaml index f9306f5704..68d486b4c8 100644 --- a/charts/vald/templates/discoverer/clusterrole.yaml +++ b/charts/vald/templates/discoverer/clusterrole.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.discoverer.clusterRole.enabled }} +{{- if and .Values.discoverer.enabled .Values.discoverer.clusterRole.enabled }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: diff --git a/charts/vald/templates/discoverer/clusterrolebinding.yaml b/charts/vald/templates/discoverer/clusterrolebinding.yaml index 227c7b5a9e..08b66560ed 100644 --- a/charts/vald/templates/discoverer/clusterrolebinding.yaml +++ b/charts/vald/templates/discoverer/clusterrolebinding.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.discoverer.clusterRoleBinding.enabled }} +{{- if and .Values.discoverer.enabled .Values.discoverer.clusterRoleBinding.enabled }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: diff --git a/charts/vald/templates/discoverer/configmap.yaml b/charts/vald/templates/discoverer/configmap.yaml index 6fa9a230c3..ad9a422269 100644 --- a/charts/vald/templates/discoverer/configmap.yaml +++ b/charts/vald/templates/discoverer/configmap.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.discoverer.enabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -33,3 +34,4 @@ data: {{- include "vald.observability" $observability | nindent 6 }} discoverer: {{- toYaml .Values.discoverer.discoverer | nindent 6 }} +{{- end }} diff --git a/charts/vald/templates/discoverer/daemonset.yaml b/charts/vald/templates/discoverer/daemonset.yaml index daa3c7f3a5..c0d2e5d44d 100644 --- a/charts/vald/templates/discoverer/daemonset.yaml +++ b/charts/vald/templates/discoverer/daemonset.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.discoverer.kind "DaemonSet" }} +{{- if and .Values.discoverer.enabled (eq .Values.discoverer.kind "DaemonSet") }} apiVersion: apps/v1 kind: DaemonSet metadata: diff --git a/charts/vald/templates/discoverer/deployment.yaml b/charts/vald/templates/discoverer/deployment.yaml index d8d6a23ba5..4d1444061d 100644 --- a/charts/vald/templates/discoverer/deployment.yaml +++ b/charts/vald/templates/discoverer/deployment.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.discoverer.kind "Deployment" }} +{{- if and .Values.discoverer.enabled (eq .Values.discoverer.kind "Deployment") }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/charts/vald/templates/discoverer/pdb.yaml b/charts/vald/templates/discoverer/pdb.yaml index 13dd36482b..8454bf4720 100644 --- a/charts/vald/templates/discoverer/pdb.yaml +++ b/charts/vald/templates/discoverer/pdb.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.discoverer.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: @@ -22,3 +23,4 @@ spec: selector: matchLabels: app: {{ .Values.discoverer.name }} +{{- end }} diff --git a/charts/vald/templates/discoverer/priorityclass.yaml b/charts/vald/templates/discoverer/priorityclass.yaml index 819a8da2df..055edbde19 100644 --- a/charts/vald/templates/discoverer/priorityclass.yaml +++ b/charts/vald/templates/discoverer/priorityclass.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.discoverer.podPriority.enabled }} +{{- if and .Values.discoverer.enabled .Values.discoverer.podPriority.enabled }} apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: diff --git a/charts/vald/templates/discoverer/serviceaccount.yaml b/charts/vald/templates/discoverer/serviceaccount.yaml index c69d9d1a31..58148c7fce 100644 --- a/charts/vald/templates/discoverer/serviceaccount.yaml +++ b/charts/vald/templates/discoverer/serviceaccount.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.discoverer.serviceAccount.enabled }} +{{- if and .Values.discoverer.enabled .Values.discoverer.serviceAccount.enabled }} apiVersion: v1 kind: ServiceAccount metadata: diff --git a/charts/vald/templates/discoverer/svc.yaml b/charts/vald/templates/discoverer/svc.yaml index d948b34274..f84fbd82ca 100644 --- a/charts/vald/templates/discoverer/svc.yaml +++ b/charts/vald/templates/discoverer/svc.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.discoverer.enabled }} apiVersion: v1 kind: Service metadata: @@ -37,3 +38,4 @@ spec: {{- if .Values.discoverer.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.discoverer.externalTrafficPolicy }} {{- end }} +{{- end }} diff --git a/charts/vald/templates/gateway/vald/configmap.yaml b/charts/vald/templates/gateway/vald/configmap.yaml index 037062acb5..d62ebf2694 100644 --- a/charts/vald/templates/gateway/vald/configmap.yaml +++ b/charts/vald/templates/gateway/vald/configmap.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.gateway.enabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -65,3 +66,4 @@ data: {{- include "vald.grpc.client" $backupClient | nindent 10 }} egress_filter: client: null +{{- end }} diff --git a/charts/vald/templates/gateway/vald/daemonset.yaml b/charts/vald/templates/gateway/vald/daemonset.yaml index c13372f6e7..93039a1623 100644 --- a/charts/vald/templates/gateway/vald/daemonset.yaml +++ b/charts/vald/templates/gateway/vald/daemonset.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.gateway.kind "DaemonSet" }} +{{- if and .Values.gateway.enabled (eq .Values.gateway.kind "DaemonSet") }} apiVersion: apps/v1 kind: DaemonSet metadata: diff --git a/charts/vald/templates/gateway/vald/deployment.yaml b/charts/vald/templates/gateway/vald/deployment.yaml index 76c2e8a922..f355211d71 100644 --- a/charts/vald/templates/gateway/vald/deployment.yaml +++ b/charts/vald/templates/gateway/vald/deployment.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.gateway.kind "Deployment" }} +{{- if and .Values.gateway.enabled (eq .Values.gateway.kind "Deployment") }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/charts/vald/templates/gateway/vald/hpa.yaml b/charts/vald/templates/gateway/vald/hpa.yaml index 3b4e4b1d4d..c98599491c 100644 --- a/charts/vald/templates/gateway/vald/hpa.yaml +++ b/charts/vald/templates/gateway/vald/hpa.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.gateway.hpa.enabled }} +{{- if and .Values.gateway.enabled .Values.gateway.hpa.enabled }} apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: diff --git a/charts/vald/templates/gateway/vald/ing.yaml b/charts/vald/templates/gateway/vald/ing.yaml index 603f6e50c6..bea17f4fbb 100644 --- a/charts/vald/templates/gateway/vald/ing.yaml +++ b/charts/vald/templates/gateway/vald/ing.yaml @@ -13,8 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # - -{{- if .Values.gateway.ingress.enabled }} +{{- if and .Values.gateway.enabled .Values.gateway.ingress.enabled }} apiVersion: networking.k8s.io/v1beta1 # apiVersion: networking.k8s.io/v1 kind: Ingress diff --git a/charts/vald/templates/gateway/vald/pdb.yaml b/charts/vald/templates/gateway/vald/pdb.yaml index 60b975733b..a9cd22357a 100644 --- a/charts/vald/templates/gateway/vald/pdb.yaml +++ b/charts/vald/templates/gateway/vald/pdb.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.gateway.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: @@ -22,3 +23,4 @@ spec: selector: matchLabels: app: {{ .Values.gateway.name }} +{{- end }} diff --git a/charts/vald/templates/gateway/vald/priorityclass.yaml b/charts/vald/templates/gateway/vald/priorityclass.yaml index 6f396048ae..5f61df2942 100644 --- a/charts/vald/templates/gateway/vald/priorityclass.yaml +++ b/charts/vald/templates/gateway/vald/priorityclass.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.gateway.podPriority.enabled }} +{{- if and .Values.gateway.enabled .Values.gateway.podPriority.enabled }} apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: diff --git a/charts/vald/templates/gateway/vald/svc.yaml b/charts/vald/templates/gateway/vald/svc.yaml index d181c81ec4..a63e368ad9 100644 --- a/charts/vald/templates/gateway/vald/svc.yaml +++ b/charts/vald/templates/gateway/vald/svc.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.gateway.enabled }} apiVersion: v1 kind: Service metadata: @@ -37,3 +38,4 @@ spec: {{- if .Values.gateway.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.gateway.externalTrafficPolicy }} {{- end }} +{{- end }} diff --git a/charts/vald/templates/manager/backup/configmap.yaml b/charts/vald/templates/manager/backup/configmap.yaml index 879dbd0168..f02bd28d1a 100644 --- a/charts/vald/templates/manager/backup/configmap.yaml +++ b/charts/vald/templates/manager/backup/configmap.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.backupManager.enabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -39,3 +40,4 @@ data: cassandra_config: {{- toYaml .Values.backupManager.cassandra.config | nindent 6 }} {{- end }} +{{- end }} diff --git a/charts/vald/templates/manager/backup/daemonset.yaml b/charts/vald/templates/manager/backup/daemonset.yaml index 5c31d409c6..62e87f6089 100644 --- a/charts/vald/templates/manager/backup/daemonset.yaml +++ b/charts/vald/templates/manager/backup/daemonset.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.backupManager.kind "DaemonSet" }} +{{- if and .Values.backupManager.enabled (eq .Values.backupManager.kind "DaemonSet") }} apiVersion: apps/v1 kind: DaemonSet metadata: diff --git a/charts/vald/templates/manager/backup/deployment.yaml b/charts/vald/templates/manager/backup/deployment.yaml index fb29b61d4e..21492b546a 100644 --- a/charts/vald/templates/manager/backup/deployment.yaml +++ b/charts/vald/templates/manager/backup/deployment.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.backupManager.kind "Deployment" }} +{{- if and .Values.backupManager.enabled (eq .Values.backupManager.kind "Deployment") }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/charts/vald/templates/manager/backup/hpa.yaml b/charts/vald/templates/manager/backup/hpa.yaml index 41688c41b7..1992bc60ce 100644 --- a/charts/vald/templates/manager/backup/hpa.yaml +++ b/charts/vald/templates/manager/backup/hpa.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.backupManager.hpa.enabled }} +{{- if and .Values.backupManager.enabled .Values.backupManager.hpa.enabled }} apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: diff --git a/charts/vald/templates/manager/backup/pdb.yaml b/charts/vald/templates/manager/backup/pdb.yaml index 8cd11b5c59..f65c9a28c5 100644 --- a/charts/vald/templates/manager/backup/pdb.yaml +++ b/charts/vald/templates/manager/backup/pdb.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.backupManager.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: @@ -22,3 +23,4 @@ spec: selector: matchLabels: app: {{ .Values.backupManager.name }} +{{- end }} diff --git a/charts/vald/templates/manager/backup/priorityclass.yaml b/charts/vald/templates/manager/backup/priorityclass.yaml index 773e40dc10..9d684512bf 100644 --- a/charts/vald/templates/manager/backup/priorityclass.yaml +++ b/charts/vald/templates/manager/backup/priorityclass.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.backupManager.podPriority.enabled }} +{{- if and .Values.backupManager.enabled .Values.backupManager.podPriority.enabled }} apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: diff --git a/charts/vald/templates/manager/backup/svc.yaml b/charts/vald/templates/manager/backup/svc.yaml index ae2b7e7394..de2e35c6d0 100644 --- a/charts/vald/templates/manager/backup/svc.yaml +++ b/charts/vald/templates/manager/backup/svc.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.backupManager.enabled }} apiVersion: v1 kind: Service metadata: @@ -37,3 +38,4 @@ spec: {{- if .Values.backupManager.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.backupManager.externalTrafficPolicy }} {{- end }} +{{- end }} diff --git a/charts/vald/templates/manager/compressor/configmap.yaml b/charts/vald/templates/manager/compressor/configmap.yaml index 96f3f09536..c9a8b9af8c 100644 --- a/charts/vald/templates/manager/compressor/configmap.yaml +++ b/charts/vald/templates/manager/compressor/configmap.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.compressor.enabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -51,3 +52,4 @@ data: client: {{- $compressorClient := dict "Values" .Values.compressor.registerer.compressor.client "default" .Values.defaults.grpc.client }} {{- include "vald.grpc.client" $compressorClient | nindent 12 }} +{{- end }} diff --git a/charts/vald/templates/manager/compressor/daemonset.yaml b/charts/vald/templates/manager/compressor/daemonset.yaml index 69b1417181..6ca8ae31a2 100644 --- a/charts/vald/templates/manager/compressor/daemonset.yaml +++ b/charts/vald/templates/manager/compressor/daemonset.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.compressor.kind "DaemonSet" }} +{{- if and .Values.compressor.enabled (eq .Values.compressor.kind "DaemonSet") }} apiVersion: apps/v1 kind: DaemonSet metadata: diff --git a/charts/vald/templates/manager/compressor/deployment.yaml b/charts/vald/templates/manager/compressor/deployment.yaml index 704d6d83ce..b08ab74048 100644 --- a/charts/vald/templates/manager/compressor/deployment.yaml +++ b/charts/vald/templates/manager/compressor/deployment.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.compressor.kind "Deployment" }} +{{- if and .Values.compressor.enabled (eq .Values.compressor.kind "Deployment") }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/charts/vald/templates/manager/compressor/hpa.yaml b/charts/vald/templates/manager/compressor/hpa.yaml index e947527a29..48099f044f 100644 --- a/charts/vald/templates/manager/compressor/hpa.yaml +++ b/charts/vald/templates/manager/compressor/hpa.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.compressor.hpa.enabled }} +{{- if and .Values.compressor.enabled .Values.compressor.hpa.enabled }} apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: diff --git a/charts/vald/templates/manager/compressor/pdb.yaml b/charts/vald/templates/manager/compressor/pdb.yaml index 47da93de5a..8454f015a6 100644 --- a/charts/vald/templates/manager/compressor/pdb.yaml +++ b/charts/vald/templates/manager/compressor/pdb.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.compressor.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: @@ -22,3 +23,4 @@ spec: selector: matchLabels: app: {{ .Values.compressor.name }} +{{- end }} diff --git a/charts/vald/templates/manager/compressor/priorityclass.yaml b/charts/vald/templates/manager/compressor/priorityclass.yaml index a00c262719..c360e38555 100644 --- a/charts/vald/templates/manager/compressor/priorityclass.yaml +++ b/charts/vald/templates/manager/compressor/priorityclass.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.compressor.podPriority.enabled }} +{{- if and .Values.compressor.enabled .Values.compressor.podPriority.enabled }} apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: diff --git a/charts/vald/templates/manager/compressor/svc.yaml b/charts/vald/templates/manager/compressor/svc.yaml index 488f81c142..15b0f97112 100644 --- a/charts/vald/templates/manager/compressor/svc.yaml +++ b/charts/vald/templates/manager/compressor/svc.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.compressor.enabled }} apiVersion: v1 kind: Service metadata: @@ -37,3 +38,4 @@ spec: {{- if .Values.compressor.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.compressor.externalTrafficPolicy }} {{- end }} +{{- end }} diff --git a/charts/vald/templates/manager/index/configmap.yaml b/charts/vald/templates/manager/index/configmap.yaml index 16a82e2fa9..2808cfb631 100644 --- a/charts/vald/templates/manager/index/configmap.yaml +++ b/charts/vald/templates/manager/index/configmap.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.indexManager.enabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -51,3 +52,4 @@ data: auto_index_duration_limit: {{ .Values.indexManager.indexer.auto_index_duration_limit }} auto_index_check_duration: {{ .Values.indexManager.indexer.auto_index_check_duration }} auto_index_length: {{ .Values.indexManager.indexer.auto_index_length }} +{{- end }} diff --git a/charts/vald/templates/manager/index/daemonset.yaml b/charts/vald/templates/manager/index/daemonset.yaml index 5033416435..4ff8b8450f 100644 --- a/charts/vald/templates/manager/index/daemonset.yaml +++ b/charts/vald/templates/manager/index/daemonset.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.indexManager.kind "DaemonSet" }} +{{- if and .Values.indexManager.enabled (eq .Values.indexManager.kind "DaemonSet") }} apiVersion: apps/v1 kind: DaemonSet metadata: diff --git a/charts/vald/templates/manager/index/deployment.yaml b/charts/vald/templates/manager/index/deployment.yaml index e14a10d811..2981baa004 100644 --- a/charts/vald/templates/manager/index/deployment.yaml +++ b/charts/vald/templates/manager/index/deployment.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.indexManager.kind "Deployment" }} +{{- if and .Values.indexManager.enabled (eq .Values.indexManager.kind "Deployment") }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/charts/vald/templates/manager/index/pdb.yaml b/charts/vald/templates/manager/index/pdb.yaml index 6d298276b1..b629d1d334 100644 --- a/charts/vald/templates/manager/index/pdb.yaml +++ b/charts/vald/templates/manager/index/pdb.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.indexManager.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: @@ -22,3 +23,4 @@ spec: selector: matchLabels: app: {{ .Values.indexManager.name }} +{{- end }} diff --git a/charts/vald/templates/manager/index/priorityclass.yaml b/charts/vald/templates/manager/index/priorityclass.yaml index 4251ead991..294cce7d55 100644 --- a/charts/vald/templates/manager/index/priorityclass.yaml +++ b/charts/vald/templates/manager/index/priorityclass.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.indexManager.podPriority.enabled }} +{{- if and .Values.indexManager.enabled .Values.indexManager.podPriority.enabled }} apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: diff --git a/charts/vald/templates/manager/index/svc.yaml b/charts/vald/templates/manager/index/svc.yaml index beb0e0b027..bc74fcfcbd 100644 --- a/charts/vald/templates/manager/index/svc.yaml +++ b/charts/vald/templates/manager/index/svc.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.indexManager.enabled }} apiVersion: v1 kind: Service metadata: @@ -37,3 +38,4 @@ spec: {{- if .Values.indexManager.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.indexManager.externalTrafficPolicy }} {{- end }} +{{- end }} diff --git a/charts/vald/templates/meta/configmap.yaml b/charts/vald/templates/meta/configmap.yaml index 812127f915..1aa3b92244 100644 --- a/charts/vald/templates/meta/configmap.yaml +++ b/charts/vald/templates/meta/configmap.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.meta.enabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -39,3 +40,4 @@ data: cassandra_config: {{- toYaml .Values.meta.cassandra.config | nindent 6 }} {{- end }} +{{- end }} diff --git a/charts/vald/templates/meta/daemonset.yaml b/charts/vald/templates/meta/daemonset.yaml index 6077c56900..f12b097d15 100644 --- a/charts/vald/templates/meta/daemonset.yaml +++ b/charts/vald/templates/meta/daemonset.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.meta.kind "DaemonSet" }} +{{- if and .Values.meta.enabled (eq .Values.meta.kind "DaemonSet") }} apiVersion: apps/v1 kind: DaemonSet metadata: diff --git a/charts/vald/templates/meta/deployment.yaml b/charts/vald/templates/meta/deployment.yaml index 181160d742..3890a1ba63 100644 --- a/charts/vald/templates/meta/deployment.yaml +++ b/charts/vald/templates/meta/deployment.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if eq .Values.meta.kind "Deployment" }} +{{- if and .Values.meta.enabled (eq .Values.meta.kind "Deployment") }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/charts/vald/templates/meta/hpa.yaml b/charts/vald/templates/meta/hpa.yaml index 4aa1d948ae..92f50c44d3 100644 --- a/charts/vald/templates/meta/hpa.yaml +++ b/charts/vald/templates/meta/hpa.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.meta.hpa.enabled }} +{{- if and .Values.meta.enabled .Values.meta.hpa.enabled }} apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: diff --git a/charts/vald/templates/meta/pdb.yaml b/charts/vald/templates/meta/pdb.yaml index b082453591..ad3b90d44b 100644 --- a/charts/vald/templates/meta/pdb.yaml +++ b/charts/vald/templates/meta/pdb.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.meta.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: @@ -22,3 +23,4 @@ spec: selector: matchLabels: app: {{ .Values.meta.name }} +{{- end }} diff --git a/charts/vald/templates/meta/priorityclass.yaml b/charts/vald/templates/meta/priorityclass.yaml index e83160f799..08846fd062 100644 --- a/charts/vald/templates/meta/priorityclass.yaml +++ b/charts/vald/templates/meta/priorityclass.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -{{- if .Values.meta.podPriority.enabled }} +{{- if and .Values.meta.enabled .Values.meta.podPriority.enabled }} apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: diff --git a/charts/vald/templates/meta/svc.yaml b/charts/vald/templates/meta/svc.yaml index 4f9bbe5e3f..447d670210 100644 --- a/charts/vald/templates/meta/svc.yaml +++ b/charts/vald/templates/meta/svc.yaml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +{{- if .Values.meta.enabled }} apiVersion: v1 kind: Service metadata: @@ -37,3 +38,4 @@ spec: {{- if .Values.meta.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.meta.externalTrafficPolicy }} {{- end }} +{{- end }} diff --git a/charts/vald/values-agent-ngt-standalone.yaml b/charts/vald/values-agent-ngt-standalone.yaml new file mode 100644 index 0000000000..074bc3ba33 --- /dev/null +++ b/charts/vald/values-agent-ngt-standalone.yaml @@ -0,0 +1,44 @@ +# +# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +agent: + ngt: + auto_index_duration_limit: 30m + auto_index_check_duration: 1m + auto_index_length: 100 + dimension: 4096 + distance_type: l2 + object_type: float + creation_edge_size: 20 + search_edge_size: 10 + +gateway: + enabled: false + +discoverer: + enabled: false + +compressor: + enabled: false + +backupManager: + enabled: false + +indexManager: + enabled: false + +meta: + enabled: false diff --git a/charts/vald/values.yaml b/charts/vald/values.yaml index 95ba976ea4..b301b7c19a 100644 --- a/charts/vald/values.yaml +++ b/charts/vald/values.yaml @@ -411,6 +411,8 @@ defaults: buffer_max_count: 10 gateway: + # gateway.enabled -- gateway enabled + enabled: true # gateway.version -- version of gateway config version: v0.0.0 # gateway.name -- name of gateway deployment @@ -602,6 +604,8 @@ gateway: client: {} agent: + # agent.enabled -- agent enabled + enabled: true # agent.version -- version of agent config version: v0.0.0 # agent.name -- name of agent deployment @@ -762,6 +766,8 @@ agent: enable_in_memory_mode: true discoverer: + # discoverer.enabled -- discoverer enabled + enabled: true # discoverer.version -- version of discoverer config version: v0.0.0 # discoverer.name -- name of discoverer deployment @@ -908,6 +914,8 @@ discoverer: name: vald compressor: + # compressor.enabled -- compressor enabled + enabled: true # compressor.version -- version of compressor config version: v0.0.0 # compressor.name -- name of compressor deployment @@ -1055,6 +1063,8 @@ compressor: client: {} backupManager: + # backupManager.enabled -- backup manager enabled + enabled: true # backupManager.version -- version of backup manager config version: v0.0.0 # backupManager.name -- name of backup manager deployment @@ -1395,6 +1405,8 @@ backupManager: white_list: [] indexManager: + # indexManager.enabled -- index manager enabled + enabled: true # indexManager.version -- version of index manager config version: v0.0.0 # indexManager.name -- name of index manager deployment @@ -1541,6 +1553,8 @@ indexManager: keep_alive: 15m meta: + # meta.enabled -- meta enabled + enabled: true # meta.version -- version of meta config version: v0.0.0 # meta.name -- name of meta deployment