Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add istio configuration in server #121 #122

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions charts/server/templates/istio.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

6 changes: 5 additions & 1 deletion charts/server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ image:
tag: "latest"

env:
database: astra
database: astra
logLevel: info

cassandra:
Expand Down Expand Up @@ -53,6 +53,10 @@ service:
type: ClusterIP
port: 8080

istio:
enabled: true
host: capten.server.local

ingress:
enabled: false
className: ""
Expand Down
Loading