-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
21 changed files
with
401 additions
and
2 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
39 changes: 39 additions & 0 deletions
39
...etes/helm/che/custom-charts/che-devfile-registry/templates/traefik-gateway-configmap.yaml
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,39 @@ | ||
# | ||
# Copyright (c) 2012-2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
{{- if and (eq .Values.global.serverStrategy "single-host") (eq .Values.global.singleHostExposure "gateway") }} | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app: che | ||
component: che-gateway-config | ||
name: che-gateway-route-devfile-registry | ||
data: | ||
devfile-registry.yml: | | ||
http: | ||
routers: | ||
devfile-registry: | ||
rule: "PathPrefix(`/devfile-registry`)" | ||
service: devfile-registry | ||
middlewares: [devfile-registry] | ||
priority: 10 | ||
services: | ||
devfile-registry: | ||
loadBalancer: | ||
servers: | ||
- url: 'http://devfile-registry:8080' | ||
middlewares: | ||
devfile-registry: | ||
stripPrefix: | ||
prefixes: | ||
- '/devfile-registry' | ||
{{- end }} |
12 changes: 12 additions & 0 deletions
12
deploy/kubernetes/helm/che/custom-charts/che-gateway/Chart.yaml
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,12 @@ | ||
# | ||
# Copyright (c) 2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
apiVersion: "v1" | ||
name: "che-gateway" | ||
version: "0.0.1" |
34 changes: 34 additions & 0 deletions
34
deploy/kubernetes/helm/che/custom-charts/che-gateway/templates/configmap-traefik.yaml
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,34 @@ | ||
# | ||
# Copyright (c) 2012-2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app: che | ||
component: che-gateway | ||
name: che-gateway-config | ||
data: | ||
traefik.yml: | | ||
global: | ||
checkNewVersion: false | ||
sendAnonymousUsage: false | ||
entrypoints: | ||
http: | ||
address: ":8080" | ||
forwardedHeaders: | ||
insecure: true | ||
https: | ||
address: ":8443" | ||
forwardedHeaders: | ||
insecure: true | ||
providers: | ||
file: | ||
directory: "/dynamic-config" | ||
watch: true |
69 changes: 69 additions & 0 deletions
69
deploy/kubernetes/helm/che/custom-charts/che-gateway/templates/deployment.yaml
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,69 @@ | ||
# | ||
# Copyright (c) 2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: che | ||
component: che-gateway | ||
name: che-gateway | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 2 | ||
selector: | ||
matchLabels: | ||
app: che | ||
component: che-gateway | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
template: | ||
metadata: | ||
labels: | ||
app: che | ||
component: che-gateway | ||
spec: | ||
serviceAccountName: che-gateway | ||
containers: | ||
- name: gateway | ||
image: {{ .Values.cheGateway.gatewayImage }} | ||
imagePullPolicy: {{ .Values.cheGateway.imagePullPolicy }} | ||
volumeMounts: | ||
- name: static-config | ||
mountPath: /etc/traefik | ||
- name: dynamic-config | ||
mountPath: "/dynamic-config" | ||
- name: configbump | ||
image: {{ .Values.cheGateway.configBumpImage }} | ||
imagePullPolicy: {{ .Values.cheGateway.imagePullPolicy }} | ||
env: | ||
- name: CONFIG_BUMP_DIR | ||
value: "/dynamic-config" | ||
- name: CONFIG_BUMP_LABELS | ||
value: {{ .Values.global.singleHostGatewayLabels | quote }} | ||
- name: CONFIG_BUMP_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
volumeMounts: | ||
- name: dynamic-config | ||
mountPath: "/dynamic-config" | ||
volumes: | ||
- name: static-config | ||
configMap: | ||
name: che-gateway-config | ||
- name: dynamic-config | ||
emptyDir: {} |
22 changes: 22 additions & 0 deletions
22
deploy/kubernetes/helm/che/custom-charts/che-gateway/templates/role.yaml
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,22 @@ | ||
# | ||
# Copyright (c) 2012-2019 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: che-gateway | ||
rules: | ||
- verbs: | ||
- watch | ||
- get | ||
- list | ||
apiGroups: | ||
- "" | ||
resources: | ||
- configmaps |
20 changes: 20 additions & 0 deletions
20
deploy/kubernetes/helm/che/custom-charts/che-gateway/templates/rolebinding.yaml
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,20 @@ | ||
# | ||
# Copyright (c) 2012-2019 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: che-gateway | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: che-gateway | ||
subjects: | ||
- kind: ServiceAccount | ||
name: che-gateway |
24 changes: 24 additions & 0 deletions
24
deploy/kubernetes/helm/che/custom-charts/che-gateway/templates/service.yaml
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,24 @@ | ||
# | ||
# Copyright (c) 2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: che | ||
component: che-gateway | ||
name: che-gateway | ||
spec: | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
app: che | ||
component: che-gateway |
16 changes: 16 additions & 0 deletions
16
deploy/kubernetes/helm/che/custom-charts/che-gateway/templates/serviceaccount.yaml
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,16 @@ | ||
# | ||
# Copyright (c) 2012-2019 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app: che | ||
component: che-gateway | ||
name: che-gateway |
13 changes: 13 additions & 0 deletions
13
deploy/kubernetes/helm/che/custom-charts/che-gateway/values.yaml
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,13 @@ | ||
# | ||
# Copyright (c) 2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
cheGateway: | ||
gatewayImage: docker.io/traefik:v2.2.8 | ||
configBumpImage: quay.io/che-incubator/configbump:0.1.4 | ||
imagePullPolicy: Always |
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
33 changes: 33 additions & 0 deletions
33
...y/kubernetes/helm/che/custom-charts/che-keycloak/templates/traefik-gateway-configmap.yaml
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,33 @@ | ||
# | ||
# Copyright (c) 2012-2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
{{- if and (eq .Values.global.serverStrategy "single-host") (eq .Values.global.singleHostExposure "gateway") }} | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app: che | ||
component: che-gateway-config | ||
name: che-gateway-route-keycloak | ||
data: | ||
keycloak.yml: | | ||
http: | ||
routers: | ||
keycloak: | ||
rule: "PathPrefix(`/auth`)" | ||
service: keycloak | ||
priority: 10 | ||
services: | ||
keycloak: | ||
loadBalancer: | ||
servers: | ||
- url: 'http://keycloak:5050' | ||
{{- 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
39 changes: 39 additions & 0 deletions
39
...netes/helm/che/custom-charts/che-plugin-registry/templates/traefik-gateway-configmap.yaml
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,39 @@ | ||
# | ||
# Copyright (c) 2012-2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
{{- if and (eq .Values.global.serverStrategy "single-host") (eq .Values.global.singleHostExposure "gateway") }} | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app: che | ||
component: che-gateway-config | ||
name: che-gateway-route-plugin-registry | ||
data: | ||
plugin-registry.yml: | | ||
http: | ||
routers: | ||
plugin-registry: | ||
rule: "PathPrefix(`/plugin-registry`)" | ||
service: plugin-registry | ||
middlewares: [plugin-registry] | ||
priority: 10 | ||
services: | ||
plugin-registry: | ||
loadBalancer: | ||
servers: | ||
- url: 'http://plugin-registry:8080' | ||
middlewares: | ||
plugin-registry: | ||
stripPrefix: | ||
prefixes: | ||
- '/plugin-registry' | ||
{{- 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
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.