diff --git a/charts/server/Chart.yaml b/charts/server/Chart.yaml index d91cdd4f..d96abe14 100644 --- a/charts/server/Chart.yaml +++ b/charts/server/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.9 +version: 0.1.10 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/server/templates/istio.yaml b/charts/server/templates/istio.yaml new file mode 100644 index 00000000..4c2fd8f8 --- /dev/null +++ b/charts/server/templates/istio.yaml @@ -0,0 +1,21 @@ +{{- if .Values.istio.enabled -}} +apiVersion: networking.istio.io/v1beta1 +kind: VirtualService +metadata: + name: {{ include "server.fullname" . }}-vs + labels: + {{- include "server.labels" . | nindent 4 }} +spec: + gateways: + - istio-system/intelops-gateway + hosts: + - {{ .Values.istio.host }} + http: + - route: + - destination: + host: {{ include "server.fullname" . }} + port: + number: {{ .Values.service.port }} + timeout: 30s +{{- end }} + diff --git a/charts/server/values.yaml b/charts/server/values.yaml index fea24b15..155ea0e8 100644 --- a/charts/server/values.yaml +++ b/charts/server/values.yaml @@ -10,7 +10,7 @@ image: tag: "latest" env: - database: astra + database: astra logLevel: info cassandra: @@ -53,6 +53,10 @@ service: type: ClusterIP port: 8080 +istio: + enabled: true + host: capten.server.local + ingress: enabled: false className: ""