-
-
Save saashqdev/48be7807ca1f49626add7ba6a02aaac8 to your computer and use it in GitHub Desktop.
Openshift-console for Kubernetes with OIDC
This file contains hidden or 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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
qbec.io/component: console | |
labels: | |
qbec.io/application: openshift-console | |
qbec.io/environment: stage | |
name: openshift-console | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: openshift-console | |
spec: | |
containers: | |
- args: | |
- /opt/bridge/bin/bridge | |
- --public-dir=/opt/bridge/static | |
- --listen=http://0.0.0.0:9000 | |
- --k8s-auth=oidc | |
- --user-auth=oidc | |
- --user-auth-oidc-issuer-url=https://keycloak.example.org/auth/realms/kubernetes | |
- --user-auth-oidc-client-id=kubernetes | |
- --user-auth-oidc-client-secret=098c139a-8b33-4537-ace3-20abec54f399 | |
- --base-address=https://kubernetes.example.org | |
image: quay.io/openshift/origin-console:latest | |
name: openshift-console | |
ports: | |
- containerPort: 9000 | |
--- | |
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
kubernetes.io/ingress.class: nginx-internal | |
qbec.io/component: console | |
labels: | |
qbec.io/application: openshift-console | |
qbec.io/environment: stage | |
name: openshift-console | |
spec: | |
rules: | |
- host: kubernetes.example.org | |
http: | |
paths: | |
- backend: | |
serviceName: openshift-console | |
servicePort: 9000 | |
tls: | |
- hosts: | |
- kubernetes.example.org | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
annotations: | |
qbec.io/component: console | |
labels: | |
qbec.io/application: openshift-console | |
qbec.io/environment: stage | |
name: openshift-console | |
spec: | |
ports: | |
- port: 9000 | |
protocol: TCP | |
targetPort: 9000 | |
selector: | |
app: openshift-console | |
type: ClusterIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment