Changes
This commit is contained in:
+5
-4
@@ -1,9 +1,10 @@
|
||||
Apply order:
|
||||
1) kubectl apply -f k8s/namespace.yaml
|
||||
2) kubectl apply -f k8s/secret.example.yaml
|
||||
3) kubectl apply -f k8s/deployment.yaml
|
||||
4) kubectl apply -f k8s/service.yaml
|
||||
5) kubectl apply -f k8s/ingress.yaml
|
||||
2) kubectl apply -f k8s/configmap.yaml
|
||||
3) kubectl apply -f k8s/secret.example.yaml
|
||||
4) kubectl apply -f k8s/deployment.yaml
|
||||
5) kubectl apply -f k8s/service.yaml
|
||||
6) kubectl apply -f k8s/ingress.yaml
|
||||
|
||||
Then verify:
|
||||
- kubectl -n maintenance-dev get pods,svc,ingress
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: maintenance-config
|
||||
namespace: maintenance-dev
|
||||
data:
|
||||
AUTH_MODE: "OIDC"
|
||||
AUTH_ADMIN_GROUPS: "maintenance-Admins;maintenance-SuperAdmins"
|
||||
|
||||
# OIDC non-sensitive settings
|
||||
OIDC_AUTHORITY: "https://adfs.example.com/adfs"
|
||||
OIDC_CALLBACK_PATH: "/signin-oidc"
|
||||
OIDC_SIGNOUT_CALLBACK_PATH: "/signout-callback-oidc"
|
||||
OIDC_SCOPES: "openid;profile;email;role"
|
||||
OIDC_ROLE_CLAIM_TYPE: "http://schemas.microsoft.com/ws/2008/06/identity/claims/role"
|
||||
OIDC_NAME_CLAIM_TYPE: "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
|
||||
OIDC_VALID_ISSUERS: ""
|
||||
|
||||
# WSFED non-sensitive settings (used if AUTH_MODE=WSFED)
|
||||
ADFS_METADATA_ADDRESS: "https://adfs.example.com/federationmetadata/2007-06/federationmetadata.xml"
|
||||
ADFS_WTRELM: "URN:WSFEDAPP"
|
||||
ADFS_VALID_ISSUERS: "https://adfs.example.com/adfs/services/trust;http://adfs.example.com/adfs/services/trust"
|
||||
ADFS_WREPLY: "https://maintenance.stage.omb.gov/signin-wsfed"
|
||||
ADFS_WHR: ""
|
||||
ADFS_WAUTH: ""
|
||||
ADFS_CALLBACK_PATH: "/signin-wsfed"
|
||||
+14
-4
@@ -27,9 +27,15 @@ spec:
|
||||
value: http://+:8080
|
||||
- name: ASPNETCORE_ENVIRONMENT
|
||||
value: Staging
|
||||
- name: K8S_SECRETS_PATH
|
||||
value: /var/run/secrets/maintenancepages
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: Maintenance-Secrets
|
||||
- configMapRef:
|
||||
name: maintenance-config
|
||||
volumeMounts:
|
||||
- name: app-secrets
|
||||
mountPath: /var/run/secrets/maintenancepages
|
||||
readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
@@ -39,13 +45,17 @@ spec:
|
||||
memory: 512Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
path: /healthz
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 15
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
path: /healthz
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
volumes:
|
||||
- name: app-secrets
|
||||
secret:
|
||||
secretName: Maintenance-Secrets
|
||||
|
||||
+1
-16
@@ -5,23 +5,8 @@ metadata:
|
||||
namespace: maintenance-dev
|
||||
type: Opaque
|
||||
stringData:
|
||||
AUTH_MODE: "WSFED"
|
||||
AUTH_ADMIN_GROUPS: "maintenance-Admins;maintenance-SuperAdmins"
|
||||
ADFS_METADATA_ADDRESS: "https://adfs.example.com/federationmetadata/2007-06/federationmetadata.xml"
|
||||
ADFS_WTRELM: "URN:WSFEDAPP"
|
||||
ADFS_VALID_ISSUERS: "https://adfs.example.com/adfs/services/trust;http://adfs.example.com/adfs/services/trust"
|
||||
ADFS_WREPLY: "https://maintenance.stage.omb.gov/signin-wsfed"
|
||||
ADFS_WHR: ""
|
||||
ADFS_WAUTH: ""
|
||||
ADFS_CALLBACK_PATH: "/signin-wsfed"
|
||||
OIDC_AUTHORITY: "https://adfs.example.com/adfs"
|
||||
AUTH_GROUP_SOURCE: "MAX"
|
||||
OIDC_CLIENT_ID: "CHANGE_ME"
|
||||
OIDC_CLIENT_SECRET: "CHANGE_ME"
|
||||
OIDC_CALLBACK_PATH: "/signin-oidc"
|
||||
OIDC_SIGNOUT_CALLBACK_PATH: "/signout-callback-oidc"
|
||||
OIDC_SCOPES: "openid;profile;email;role"
|
||||
OIDC_ROLE_CLAIM_TYPE: "http://schemas.microsoft.com/ws/2008/06/identity/claims/role"
|
||||
OIDC_NAME_CLAIM_TYPE: "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
|
||||
OIDC_VALID_ISSUERS: ""
|
||||
ConnectionStrings__PrimaryDb: "Server=CHANGE_ME;Database=maintenance;User Id=CHANGE_ME;Password=CHANGE_ME;TrustServerCertificate=True"
|
||||
ConnectionStrings__GroupLookupDb: "Server=CHANGE_ME;Database=GroupLookup;User Id=CHANGE_ME;Password=CHANGE_ME;TrustServerCertificate=True"
|
||||
|
||||
Reference in New Issue
Block a user