-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved redoc container from core to sandbox helm chart (#2258)
* moved redoc container from core to sandbox helm chart Signed-off-by: Yuvraj <[email protected]> * more changes Signed-off-by: Yuvraj <[email protected]> * fix ingress Signed-off-by: Yuvraj <[email protected]> * make helm Signed-off-by: Yuvraj <[email protected]>
- Loading branch information
Showing
19 changed files
with
234 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "redoc.name" . }} | ||
namespace: {{ template "flyte.namespace" . }} | ||
labels: {{ include "redoc.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.redoc.replicaCount }} | ||
selector: | ||
matchLabels: {{ include "redoc.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
{{- with .Values.redoc.podAnnotations }} | ||
annotations: {{ tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
labels: {{ include "redoc.labels" . | nindent 8 }} | ||
spec: | ||
containers: | ||
- image: "{{ .Values.redoc.image.repository }}:{{ .Values.redoc.image.tag }}" | ||
imagePullPolicy: "{{ .Values.redoc.image.pullPolicy }}" | ||
name: redoc | ||
command: | ||
- sh | ||
- -c | ||
- ln -s /usr/share/nginx/html /usr/share/nginx/html/openapi && sh /usr/local/bin/docker-run.sh | ||
env: | ||
- name: PAGE_TITLE | ||
value: Flyte Admin OpenAPI | ||
- name: SPEC_URL | ||
value: /api/v1/openapi | ||
- name: PORT | ||
value: "8087" | ||
ports: | ||
- containerPort: 8087 | ||
resources: {{ toYaml .Values.redoc.resources | nindent 10 }} | ||
{{- with .Values.minio.nodeSelector }} | ||
nodeSelector: {{ tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.redoc.affinity }} | ||
affinity: {{ tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.redoc.tolerations }} | ||
tolerations: {{ tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "redoc.name" . }} | ||
namespace: {{ template "flyte.namespace" . }} | ||
labels: {{ include "redoc.labels" . | nindent 4 }} | ||
{{- with .Values.redoc.service.annotations }} | ||
annotations: {{ tpl (toYaml .) $ | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.redoc.service.type}} | ||
type: {{ . }} | ||
{{- end }} | ||
ports: | ||
- name: redoc | ||
protocol: TCP | ||
port: 87 | ||
targetPort: 8087 | ||
selector: {{ include "redoc.selectorLabels" . | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.