Dex deployment for subclusters using existing dex HelmRelease in treasuremap
Note: 1. As per the latest conclusion, Dex and SIPCluster would be deployed on same namespace, hence dex function added to same Kustomization file 2. As a part of Issue# 136 for catalogue, there would be another patchset to make nodeport flexible Change-Id: I53b2bb33278dd229450c305ad2e15476d8796073
This commit is contained in:
parent
ee9403fb1c
commit
88d18fa126
@ -36,7 +36,7 @@ spec:
|
|||||||
endpoints:
|
endpoints:
|
||||||
hostname: dex.function.local
|
hostname: dex.function.local
|
||||||
port:
|
port:
|
||||||
https: 32556
|
https: 30556
|
||||||
http: 32554
|
http: 32554
|
||||||
k8s: 6443
|
k8s: 6443
|
||||||
tls:
|
tls:
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"oidc-ca-file": "/etc/kubernetes/certs/dex-cert",
|
"oidc-ca-file": "/etc/kubernetes/certs/dex-cert",
|
||||||
"oidc-client-id": "function-kubernetes",
|
"oidc-client-id": "function-kubernetes",
|
||||||
"oidc-groups-claim": "group",
|
"oidc-groups-claim": "group",
|
||||||
"oidc-issuer-url": "https://dex.function.local:32556/dex",
|
"oidc-issuer-url": "https://dex.function.local:30556/dex",
|
||||||
"oidc-username-claim": "email"
|
"oidc-username-claim": "email"
|
||||||
},
|
},
|
||||||
"extraVolumes":
|
"extraVolumes":
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
resources:
|
resources:
|
||||||
|
- ../../../../../function/dex-aio
|
||||||
- sipcluster.yaml
|
- sipcluster.yaml
|
||||||
|
namespace: lma-infra
|
@ -1,3 +1,3 @@
|
|||||||
resources:
|
resources:
|
||||||
- networking.yaml
|
- networking.yaml
|
||||||
- versions.yaml
|
- versions.yaml
|
@ -45,3 +45,13 @@ replacements:
|
|||||||
# NOTE: The SIPCluster CR accepts multiple infra service definitions,
|
# NOTE: The SIPCluster CR accepts multiple infra service definitions,
|
||||||
# but we only deploy one instance of each.
|
# but we only deploy one instance of each.
|
||||||
fieldrefs: ["{.spec.services.loadBalancer[0].nodePort}"]
|
fieldrefs: ["{.spec.services.loadBalancer[0].nodePort}"]
|
||||||
|
- source:
|
||||||
|
objref:
|
||||||
|
kind: VariableCatalogue
|
||||||
|
name: subcluster-networking
|
||||||
|
fieldref: "{.spec.lma.exposed_services[?(.name == 'auth')].nodePort}"
|
||||||
|
target:
|
||||||
|
objref:
|
||||||
|
kind: HelmRelease
|
||||||
|
name: dex-aio
|
||||||
|
fieldrefs: ["{.values.params.endpoints.port.https}"]
|
||||||
|
@ -2,7 +2,6 @@ apiVersion: airship.airshipit.org/v1
|
|||||||
kind: SIPCluster
|
kind: SIPCluster
|
||||||
metadata:
|
metadata:
|
||||||
name: lma
|
name: lma
|
||||||
namespace: sipcluster-system
|
|
||||||
finalizers:
|
finalizers:
|
||||||
- sip.airship.airshipit.org/finalizer
|
- sip.airship.airshipit.org/finalizer
|
||||||
spec:
|
spec:
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
resources:
|
resources:
|
||||||
|
- ../../../../../function/dex-aio
|
||||||
- sipcluster.yaml
|
- sipcluster.yaml
|
||||||
|
namespace: wordpress-infra
|
@ -1,3 +1,3 @@
|
|||||||
resources:
|
resources:
|
||||||
- networking.yaml
|
- networking.yaml
|
||||||
- versions.yaml
|
- versions.yaml
|
@ -45,3 +45,13 @@ replacements:
|
|||||||
# NOTE: The SIPCluster CR accepts multiple infra service definitions,
|
# NOTE: The SIPCluster CR accepts multiple infra service definitions,
|
||||||
# but we only deploy one instance of each.
|
# but we only deploy one instance of each.
|
||||||
fieldrefs: ["{.spec.services.loadBalancer[0].nodePort}"]
|
fieldrefs: ["{.spec.services.loadBalancer[0].nodePort}"]
|
||||||
|
- source:
|
||||||
|
objref:
|
||||||
|
kind: VariableCatalogue
|
||||||
|
name: subcluster-networking
|
||||||
|
fieldref: "{.spec.wordpress.exposed_services[?(.name == 'auth')].nodePort}"
|
||||||
|
target:
|
||||||
|
objref:
|
||||||
|
kind: HelmRelease
|
||||||
|
name: dex-aio
|
||||||
|
fieldrefs: ["{.values.params.endpoints.port.https}"]
|
@ -2,7 +2,6 @@ apiVersion: airship.airshipit.org/v1
|
|||||||
kind: SIPCluster
|
kind: SIPCluster
|
||||||
metadata:
|
metadata:
|
||||||
name: wordpress
|
name: wordpress
|
||||||
namespace: sipcluster-system
|
|
||||||
finalizers:
|
finalizers:
|
||||||
- sip.airship.airshipit.org/finalizer
|
- sip.airship.airshipit.org/finalizer
|
||||||
spec:
|
spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user