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

Respect service type and make clusterIP default #257

Merged
merged 6 commits into from
Sep 20, 2022
Merged
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/litmus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "2.12.0"
description: A Helm chart to install ChaosCenter
name: litmus
version: 2.13.0
version: 2.13.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
30 changes: 19 additions & 11 deletions charts/litmus/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# litmus

![Version: 2.13.0](https://img.shields.io/badge/Version-2.13.0-informational?style=flat-square) ![AppVersion: 2.12.0](https://img.shields.io/badge/AppVersion-2.12.0-informational?style=flat-square)
![Version: 2.13.1](https://img.shields.io/badge/Version-2.13.1-informational?style=flat-square) ![AppVersion: 2.12.0](https://img.shields.io/badge/AppVersion-2.12.0-informational?style=flat-square)

A Helm chart to install ChaosCenter

Expand Down Expand Up @@ -35,6 +35,12 @@ $ helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
$ helm install litmus-portal litmuschaos/litmus
```

## Upgrading Chart

### From 2.13.0 -> 2.13.1

We separated service configuration from `portal.server.service` to `portal.server.graphqlServer.service` and `portal.server.authServer.service`. You need to move your values to the correspondent options and upgrade as usual.

## Values

| Key | Type | Default | Description |
Expand Down Expand Up @@ -124,6 +130,12 @@ $ helm install litmus-portal litmuschaos/litmus
| portal.server.authServer.securityContext.readOnlyRootFilesystem | bool | `true` | |
| portal.server.authServer.securityContext.runAsNonRoot | bool | `true` | |
| portal.server.authServer.securityContext.runAsUser | int | `2000` | |
| portal.server.authServer.service.annotations | object | `{}` | |
| portal.server.authServer.service.authRpcServer.port | int | `3030` | |
| portal.server.authServer.service.authRpcServer.targetPort | int | `3030` | |
| portal.server.authServer.service.authServer.port | int | `9003` | |
| portal.server.authServer.service.authServer.targetPort | int | `3000` | |
| portal.server.authServer.service.type | string | `"ClusterIP"` | |
| portal.server.authServer.volumeMounts | list | `[]` | |
| portal.server.authServer.volumes | list | `[]` | |
| portal.server.customLabels | object | `{}` | |
Expand Down Expand Up @@ -172,6 +184,12 @@ $ helm install litmus-portal litmuschaos/litmus
| portal.server.graphqlServer.securityContext.readOnlyRootFilesystem | bool | `true` | |
| portal.server.graphqlServer.securityContext.runAsNonRoot | bool | `true` | |
| portal.server.graphqlServer.securityContext.runAsUser | int | `2000` | |
| portal.server.graphqlServer.service.annotations | object | `{}` | |
| portal.server.graphqlServer.service.graphqlRpcServer.port | int | `8000` | |
| portal.server.graphqlServer.service.graphqlRpcServer.targetPort | int | `8000` | |
| portal.server.graphqlServer.service.graphqlServer.port | int | `9002` | |
| portal.server.graphqlServer.service.graphqlServer.targetPort | int | `8080` | |
| portal.server.graphqlServer.service.type | string | `"ClusterIP"` | |
| portal.server.graphqlServer.volumeMounts[0].mountPath | string | `"/tmp/"` | |
| portal.server.graphqlServer.volumeMounts[0].name | string | `"gitops-storage"` | |
| portal.server.graphqlServer.volumeMounts[1].mountPath | string | `"/tmp/version"` | |
Expand All @@ -182,16 +200,6 @@ $ helm install litmus-portal litmuschaos/litmus
| portal.server.graphqlServer.volumes[1].name | string | `"hub-storage"` | |
| portal.server.nodeSelector | object | `{}` | |
| portal.server.replicas | int | `1` | |
| portal.server.service.annotations | object | `{}` | |
| portal.server.service.authRpcServer.port | int | `3030` | |
| portal.server.service.authRpcServer.targetPort | int | `3030` | |
| portal.server.service.authServer.port | int | `9003` | |
| portal.server.service.authServer.targetPort | int | `3000` | |
| portal.server.service.graphqlRpcServer.port | int | `8000` | |
| portal.server.service.graphqlRpcServer.targetPort | int | `8000` | |
| portal.server.service.graphqlServer.port | int | `9002` | |
| portal.server.service.graphqlServer.targetPort | int | `8080` | |
| portal.server.service.type | string | `"ClusterIP"` | |
| portal.server.serviceAccountName | string | `"litmus-server-account"` | |
| portal.server.tolerations | list | `[]` | |
| portal.server.updateStrategy | object | `{}` | |
Expand Down
6 changes: 6 additions & 0 deletions charts/litmus/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ $ helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
$ helm install litmus-portal litmuschaos/litmus
```

## Upgrading Chart

### From 2.13.0 -> 2.13.1

We separated service configuration from `portal.server.service` to `portal.server.graphqlServer.service` and `portal.server.authServer.service`. You need to move your values to the correspondent options and upgrade as usual.

{{ template "chart.valuesSection" . }}

{{ template "helm-docs.versionFooter" . }}
16 changes: 6 additions & 10 deletions charts/litmus/templates/auth-server-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@ metadata:
labels:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-auth-server
{{- include "litmus-portal.labels" . | nindent 4 }}
{{- with .Values.portal.server.service.annotations }}
{{- with .Values.portal.server.authServer.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.enabled }}
type: ClusterIP
{{- else }}
type: {{ .Values.portal.server.service.type }}
{{- end }}
type: {{ .Values.portal.server.authServer.service.type }}
ports:
- name: auth-server
port: {{ .Values.portal.server.service.authServer.port }}
targetPort: {{ .Values.portal.server.service.authServer.targetPort }}
port: {{ .Values.portal.server.authServer.service.authServer.port }}
targetPort: {{ .Values.portal.server.authServer.service.authServer.targetPort }}
- name: auth-rpc-server
port: {{ .Values.portal.server.service.authRpcServer.port }}
targetPort: {{ .Values.portal.server.service.authRpcServer.targetPort }}
port: {{ .Values.portal.server.authServer.service.authRpcServer.port }}
targetPort: {{ .Values.portal.server.authServer.service.authRpcServer.targetPort }}
selector:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-auth-server
4 changes: 0 additions & 4 deletions charts/litmus/templates/frontend-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if or (.Values.ingress.enabled) (.Values.openshift.route.enabled) }}
type: ClusterIP
{{- else }}
type: {{ .Values.portal.frontend.service.type }}
{{- end }}
ports:
- name: http
port: {{ .Values.portal.frontend.service.port }}
Expand Down
16 changes: 6 additions & 10 deletions charts/litmus/templates/server-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@ metadata:
labels:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-server
{{- include "litmus-portal.labels" . | nindent 4 }}
{{- with .Values.portal.server.service.annotations }}
{{- with .Values.portal.server.graphqlServer.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.enabled }}
type: ClusterIP
{{- else }}
type: {{ .Values.portal.server.service.type }}
{{- end }}
type: {{ .Values.portal.server.graphqlServer.service.type }}
ports:
- name: graphql-server
port: {{ .Values.portal.server.service.graphqlServer.port }}
targetPort: {{ .Values.portal.server.service.graphqlServer.targetPort }}
port: {{ .Values.portal.server.graphqlServer.service.graphqlServer.port }}
targetPort: {{ .Values.portal.server.graphqlServer.service.graphqlServer.targetPort }}
- name: graphql-rpc-server
port: {{ .Values.portal.server.service.graphqlRpcServer.port }}
targetPort: {{ .Values.portal.server.service.graphqlRpcServer.targetPort }}
port: {{ .Values.portal.server.graphqlServer.service.graphqlRpcServer.port }}
targetPort: {{ .Values.portal.server.graphqlServer.service.graphqlRpcServer.targetPort }}
selector:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-server
37 changes: 20 additions & 17 deletions charts/litmus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ portal:
customLabels: {}
# my.company.com/tier: "frontend"

resources:
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down Expand Up @@ -198,6 +198,15 @@ portal:
containerPort: 8080
- name: gql-rpc-server
containerPort: 8000
service:
annotations: {}
type: ClusterIP
graphqlServer:
port: 9002
targetPort: 8080
graphqlRpcServer:
port: 8000
targetPort: 8000
imageEnv:
SUBSCRIBER_IMAGE: "litmusportal-subscriber:2.12.0"
EVENT_TRACKER_IMAGE: "litmusportal-event-tracker:2.12.0"
Expand Down Expand Up @@ -260,6 +269,15 @@ portal:
containerPort: 3030
- name: auth-rpc-server
containerPort: 3000
service:
annotations: {}
type: ClusterIP
authServer:
port: 9003
targetPort: 3000
authRpcServer:
port: 3030
targetPort: 3030
env:
LITMUS_GQL_GRPC_PORT: ":8000"
resources:
Expand All @@ -277,22 +295,7 @@ portal:
ephemeral-storage: "1Gi"
volumeMounts: []
volumes: []

service:
annotations: {}
type: ClusterIP
graphqlServer:
port: 9002
targetPort: 8080
graphqlRpcServer:
port: 8000
targetPort: 8000
authServer:
port: 9003
targetPort: 3000
authRpcServer:
port: 3030
targetPort: 3030

nodeSelector: {}
tolerations: []
affinity: {}
Expand Down