diff --git a/ndustrial/deployment/Chart.yaml b/ndustrial/deployment/Chart.yaml index 5e695d9..4c6985b 100644 --- a/ndustrial/deployment/Chart.yaml +++ b/ndustrial/deployment/Chart.yaml @@ -12,5 +12,5 @@ maintainers: - email: devops@ndustrial.io name: DevOps # Please make sure that version and appVersion are always the same. -version: 0.1.20 -appVersion: 0.1.20 +version: 0.1.21 +appVersion: 0.1.21 diff --git a/ndustrial/deployment/README.md b/ndustrial/deployment/README.md index 8d2d626..acea25d 100644 --- a/ndustrial/deployment/README.md +++ b/ndustrial/deployment/README.md @@ -66,19 +66,20 @@ ### Service parameters -| Name | Description | Value | -| ---------------------------------- | ---------------------------------------------------- | ----------- | -| `service.type` | Deployment service type | `ClusterIP` | -| `service.port` | Deployment service HTTP port | `80` | -| `service.httpsPort` | Deployment service HTTPS port | `nil` | -| `service.nodePorts.http` | Node port for HTTP | `nil` | -| `service.nodePorts.https` | Node port for HTTPS | `nil` | -| `service.clusterIP` | Deployment service Cluster IP | `nil` | -| `service.loadBalancerIP` | Deployment service Load Balancer IP | `nil` | -| `service.loadBalancerSourceRanges` | Deployment service Load Balancer sources | `[]` | -| `service.externalTrafficPolicy` | Deployment service external traffic policy | `Cluster` | -| `service.annotations` | Additional custom annotations for Deployment service | `{}` | -| `service.ports` | Additional port definitions for the service | `[]` | +| Name | Description | Value | +| ---------------------------------- | ------------------------------------------------------------------------- | ----------- | +| `service.enabled` | Enable service | `true` | +| `service.type` | The type of service to create (LoadBalancer, ClusterIP, NodePort, etc...) | `ClusterIP` | +| `service.port` | Deployment service HTTP port | `80` | +| `service.httpsPort` | Deployment service HTTPS port | `nil` | +| `service.nodePorts.http` | Node port for HTTP | `nil` | +| `service.nodePorts.https` | Node port for HTTPS | `nil` | +| `service.clusterIP` | Deployment service Cluster IP | `nil` | +| `service.loadBalancerIP` | Deployment service Load Balancer IP | `nil` | +| `service.loadBalancerSourceRanges` | Deployment service Load Balancer sources | `[]` | +| `service.externalTrafficPolicy` | Deployment service external traffic policy | `Cluster` | +| `service.annotations` | Additional custom annotations for Deployment service | `{}` | +| `service.ports` | Additional port definitions for the service | `[]` | ### Ingress parameters diff --git a/ndustrial/deployment/_var_list.yml b/ndustrial/deployment/_var_list.yml index 547531a..ec9cbfe 100644 --- a/ndustrial/deployment/_var_list.yml +++ b/ndustrial/deployment/_var_list.yml @@ -183,6 +183,10 @@ group: Deployment default: {} type: +- variable: service.enabled + group: Service + default: true + type: boolean - variable: service.type group: Service default: ClusterIP diff --git a/ndustrial/deployment/templates/svc.yaml b/ndustrial/deployment/templates/svc.yaml index 5daaefd..fc3ddee 100644 --- a/ndustrial/deployment/templates/svc.yaml +++ b/ndustrial/deployment/templates/svc.yaml @@ -1,3 +1,4 @@ +{{- if .Values.service.enabled }} apiVersion: v1 kind: Service metadata: @@ -53,3 +54,4 @@ spec: {{- include "nio-common.tplvalues.render" ( dict "value" .Values.service.ports "context" $) | nindent 4 }} {{- end }} selector: {{- include "nio-common.labels.matchLabels" . | nindent 4 }} +{{- end }} diff --git a/ndustrial/deployment/values.yaml b/ndustrial/deployment/values.yaml index 9c83ea7..299d8eb 100644 --- a/ndustrial/deployment/values.yaml +++ b/ndustrial/deployment/values.yaml @@ -129,7 +129,10 @@ updateStrategy: ## @section Service parameters service: - ## @param service.type Deployment service type + ## @param service.enabled Enable service + ## + enabled: true + ## @param service.type The type of service to create (LoadBalancer, ClusterIP, NodePort, etc...) ## type: ClusterIP ## @param service.port Deployment service HTTP port