|
| 1 | +# Copyright (c) 2022, Oracle and/or its affiliates. |
| 2 | +# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. |
| 3 | +# |
| 4 | +{{- if eq .Values.type "NGINX" }} |
| 5 | +{{- if (eq .Values.sslType "NONSSL") }} |
| 6 | +{{- if .Values.hostName.enabled }} |
| 7 | +{{- if .Values.hostName.admin }} |
| 8 | +--- |
| 9 | +apiVersion: networking.k8s.io/v1 |
| 10 | +kind: Ingress |
| 11 | +metadata: |
| 12 | + name: oamadmin-ingress |
| 13 | + namespace: {{ .Release.Namespace }} |
| 14 | + annotations: |
| 15 | + nginx.ingress.kubernetes.io/affinity: "cookie" |
| 16 | + nginx.ingress.kubernetes.io/proxy-buffer-size: "2000k" |
| 17 | + nginx.ingress.kubernetes.io/enable-access-log: "false" |
| 18 | + nginx.ingress.kubernetes.io/ingress.allow-http: "true" |
| 19 | + nginx.ingress.kubernetes.io/ssl-redirect: "false" |
| 20 | +spec: |
| 21 | + ingressClassName: nginx |
| 22 | + rules: |
| 23 | + - host: '{{ .Values.hostName.admin }}' |
| 24 | + http: |
| 25 | + paths: |
| 26 | + - path: /console |
| 27 | + pathType: ImplementationSpecific |
| 28 | + backend: |
| 29 | + service: |
| 30 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 31 | + port: |
| 32 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 33 | + - path: /consolehelp |
| 34 | + pathType: ImplementationSpecific |
| 35 | + backend: |
| 36 | + service: |
| 37 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 38 | + port: |
| 39 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 40 | + - path: /rreg/rreg |
| 41 | + pathType: ImplementationSpecific |
| 42 | + backend: |
| 43 | + service: |
| 44 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 45 | + port: |
| 46 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 47 | + - path: /em |
| 48 | + pathType: ImplementationSpecific |
| 49 | + backend: |
| 50 | + service: |
| 51 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 52 | + port: |
| 53 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 54 | + - path: /oamconsole |
| 55 | + pathType: ImplementationSpecific |
| 56 | + backend: |
| 57 | + service: |
| 58 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 59 | + port: |
| 60 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 61 | + - path: /dms |
| 62 | + pathType: ImplementationSpecific |
| 63 | + backend: |
| 64 | + service: |
| 65 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 66 | + port: |
| 67 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 68 | + - path: /oam/services/rest |
| 69 | + pathType: ImplementationSpecific |
| 70 | + backend: |
| 71 | + service: |
| 72 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 73 | + port: |
| 74 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 75 | + - path: /iam/admin/config |
| 76 | + pathType: ImplementationSpecific |
| 77 | + backend: |
| 78 | + service: |
| 79 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 80 | + port: |
| 81 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 82 | + - path: /oam/admin/api |
| 83 | + pathType: ImplementationSpecific |
| 84 | + backend: |
| 85 | + service: |
| 86 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 87 | + port: |
| 88 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 89 | + - path: /iam/admin/diag |
| 90 | + pathType: ImplementationSpecific |
| 91 | + backend: |
| 92 | + service: |
| 93 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 94 | + port: |
| 95 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 96 | + - path: /oam/services |
| 97 | + pathType: ImplementationSpecific |
| 98 | + backend: |
| 99 | + service: |
| 100 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 101 | + port: |
| 102 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 103 | + - path: /iam/admin |
| 104 | + pathType: ImplementationSpecific |
| 105 | + backend: |
| 106 | + service: |
| 107 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 108 | + port: |
| 109 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 110 | + - path: /oam/services/rest/11.1.2.0.0 |
| 111 | + pathType: ImplementationSpecific |
| 112 | + backend: |
| 113 | + service: |
| 114 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 115 | + port: |
| 116 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 117 | + - path: /oam/services/rest/ssa |
| 118 | + pathType: ImplementationSpecific |
| 119 | + backend: |
| 120 | + service: |
| 121 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 122 | + port: |
| 123 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 124 | + - path: /access |
| 125 | + pathType: ImplementationSpecific |
| 126 | + backend: |
| 127 | + service: |
| 128 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.policyClusterName | lower | replace "_" "-" }}' |
| 129 | + port: |
| 130 | + number: {{ .Values.wlsDomain.policyManagedServerPort }} |
| 131 | + |
| 132 | +{{- end }} |
| 133 | + |
| 134 | +{{- if .Values.hostName.runtime }} |
| 135 | +--- |
| 136 | +apiVersion: networking.k8s.io/v1 |
| 137 | +kind: Ingress |
| 138 | +metadata: |
| 139 | + name: oamruntime-ingress |
| 140 | + namespace: {{ .Release.Namespace }} |
| 141 | + annotations: |
| 142 | + nginx.ingress.kubernetes.io/affinity: "cookie" |
| 143 | + nginx.ingress.kubernetes.io/proxy-buffer-size: "2000k" |
| 144 | + nginx.ingress.kubernetes.io/enable-access-log: "false" |
| 145 | +spec: |
| 146 | + ingressClassName: nginx |
| 147 | + rules: |
| 148 | + - host: '{{ .Values.hostName.runtime }}' |
| 149 | + http: |
| 150 | + paths: |
| 151 | + - path: /ms_oauth |
| 152 | + pathType: ImplementationSpecific |
| 153 | + backend: |
| 154 | + service: |
| 155 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 156 | + port: |
| 157 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 158 | + - path: /oam/services/rest/auth |
| 159 | + pathType: ImplementationSpecific |
| 160 | + backend: |
| 161 | + service: |
| 162 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 163 | + port: |
| 164 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 165 | + - path: /oam/services/rest/access |
| 166 | + pathType: ImplementationSpecific |
| 167 | + backend: |
| 168 | + service: |
| 169 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 170 | + port: |
| 171 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 172 | + - path: /oamfed |
| 173 | + pathType: ImplementationSpecific |
| 174 | + backend: |
| 175 | + service: |
| 176 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 177 | + port: |
| 178 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 179 | + - path: /otpfp/ |
| 180 | + pathType: ImplementationSpecific |
| 181 | + backend: |
| 182 | + service: |
| 183 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 184 | + port: |
| 185 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 186 | + - path: /oauth2 |
| 187 | + pathType: ImplementationSpecific |
| 188 | + backend: |
| 189 | + service: |
| 190 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 191 | + port: |
| 192 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 193 | + - path: /oam |
| 194 | + pathType: ImplementationSpecific |
| 195 | + backend: |
| 196 | + service: |
| 197 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 198 | + port: |
| 199 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 200 | + - path: /.well-known/openid-configuration |
| 201 | + pathType: ImplementationSpecific |
| 202 | + backend: |
| 203 | + service: |
| 204 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 205 | + port: |
| 206 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 207 | + - path: /.well-known/oidc-configuration |
| 208 | + pathType: ImplementationSpecific |
| 209 | + backend: |
| 210 | + service: |
| 211 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 212 | + port: |
| 213 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 214 | + - path: /CustomConsent |
| 215 | + pathType: ImplementationSpecific |
| 216 | + backend: |
| 217 | + service: |
| 218 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 219 | + port: |
| 220 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 221 | + - path: /iam/access |
| 222 | + pathType: ImplementationSpecific |
| 223 | + backend: |
| 224 | + service: |
| 225 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.oamClusterName | lower | replace "_" "-" }}' |
| 226 | + port: |
| 227 | + number: {{ .Values.wlsDomain.oamManagedServerPort }} |
| 228 | + |
| 229 | +{{- end }} |
| 230 | +{{- end }} |
| 231 | +{{- end }} |
| 232 | +{{- end }} |
| 233 | + |
| 234 | + |
0 commit comments