|
| 1 | +# Copyright (c) 2020, 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 | +--- |
| 7 | +apiVersion: networking.k8s.io/v1 |
| 8 | +kind: Ingress |
| 9 | +metadata: |
| 10 | + name: {{ .Values.wlsDomain.domainUID }}-nginx |
| 11 | + namespace: {{ .Release.Namespace }} |
| 12 | + annotations: |
| 13 | + kubernetes.io/ingress.class: 'nginx' |
| 14 | + nginx.ingress.kubernetes.io/affinity: 'cookie' |
| 15 | + nginx.ingress.kubernetes.io/session-cookie-name: 'sticky' |
| 16 | + nginx.ingress.kubernetes.io/affinity-mode: 'persistent' |
| 17 | +spec: |
| 18 | + rules: |
| 19 | + - host: '{{ .Values.nginx.hostname }}' |
| 20 | + http: |
| 21 | + paths: |
| 22 | + - path: /console |
| 23 | + pathType: ImplementationSpecific |
| 24 | + backend: |
| 25 | + service: |
| 26 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 27 | + port: |
| 28 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 29 | + - path: /em |
| 30 | + pathType: ImplementationSpecific |
| 31 | + backend: |
| 32 | + service: |
| 33 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 34 | + port: |
| 35 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 36 | + - path: /weblogic/ready |
| 37 | + pathType: ImplementationSpecific |
| 38 | + backend: |
| 39 | + service: |
| 40 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 41 | + port: |
| 42 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 43 | + {{- if or (eq .Values.domainType "soa") }} |
| 44 | + - path: / |
| 45 | + pathType: ImplementationSpecific |
| 46 | + backend: |
| 47 | + service: |
| 48 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.soaClusterName | lower | replace "_" "-" }}' |
| 49 | + port: |
| 50 | + number: {{ .Values.wlsDomain.soaManagedServerPort }} |
| 51 | + {{- end }} |
| 52 | + {{- if or (eq .Values.domainType "osb") }} |
| 53 | + - path: / |
| 54 | + pathType: ImplementationSpecific |
| 55 | + backend: |
| 56 | + service: |
| 57 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.osbClusterName | lower | replace "_" "-" }}' |
| 58 | + port: |
| 59 | + number: {{ .Values.wlsDomain.osbManagedServerPort }} |
| 60 | + {{- end }} |
| 61 | + {{- if or (eq .Values.domainType "soa") (eq .Values.domainType "soaosb") }} |
| 62 | + - path: /soa-infra |
| 63 | + pathType: ImplementationSpecific |
| 64 | + backend: |
| 65 | + service: |
| 66 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.soaClusterName | lower | replace "_" "-" }}' |
| 67 | + port: |
| 68 | + number: {{ .Values.wlsDomain.soaManagedServerPort }} |
| 69 | + {{- end }} |
| 70 | + {{- if or (eq .Values.domainType "soa") (eq .Values.domainType "soaosb") }} |
| 71 | + - path: /soa/composer |
| 72 | + pathType: ImplementationSpecific |
| 73 | + backend: |
| 74 | + service: |
| 75 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.soaClusterName | lower | replace "_" "-" }}' |
| 76 | + port: |
| 77 | + number: {{ .Values.wlsDomain.soaManagedServerPort }} |
| 78 | + {{- end }} |
| 79 | + {{- if or (eq .Values.domainType "soa") (eq .Values.domainType "soaosb") }} |
| 80 | + - path: /integration/worklistapp |
| 81 | + pathType: ImplementationSpecific |
| 82 | + backend: |
| 83 | + service: |
| 84 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.soaClusterName | lower | replace "_" "-" }}' |
| 85 | + port: |
| 86 | + number: {{ .Values.wlsDomain.soaManagedServerPort }} |
| 87 | + {{- end }} |
| 88 | + {{- if or (eq .Values.domainType "osb") (eq .Values.domainType "soaosb") }} |
| 89 | + - path: /servicebus |
| 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 | + {{- end }} |
| 97 | + {{- if or (eq .Values.domainType "osb") (eq .Values.domainType "soaosb") }} |
| 98 | + - path: /lwpfconsole |
| 99 | + pathType: ImplementationSpecific |
| 100 | + backend: |
| 101 | + service: |
| 102 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 103 | + port: |
| 104 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 105 | + {{- end }} |
| 106 | + {{- if or (eq .Values.domainType "osb") (eq .Values.domainType "soaosb") }} |
| 107 | + - path: /xbusrouting |
| 108 | + pathType: ImplementationSpecific |
| 109 | + backend: |
| 110 | + service: |
| 111 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 112 | + port: |
| 113 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 114 | + {{- end }} |
| 115 | + {{- if or (eq .Values.domainType "osb") (eq .Values.domainType "soaosb") }} |
| 116 | + - path: /xbustransform |
| 117 | + pathType: ImplementationSpecific |
| 118 | + backend: |
| 119 | + service: |
| 120 | + name: '{{ .Values.wlsDomain.domainUID }}-{{ .Values.wlsDomain.adminServerName | lower | replace "_" "-" }}' |
| 121 | + port: |
| 122 | + number: {{ .Values.wlsDomain.adminServerPort }} |
| 123 | + {{- end }} |
| 124 | + {{- if or (eq .Values.domainType "soa") (eq .Values.domainType "soaosb") }} |
| 125 | + - path: /ess |
| 126 | + pathType: ImplementationSpecific |
| 127 | + backend: |
| 128 | + service: |
| 129 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.soaClusterName | lower | replace "_" "-" }}' |
| 130 | + port: |
| 131 | + number: {{ .Values.wlsDomain.soaManagedServerPort }} |
| 132 | + {{- end }} |
| 133 | + {{- if or (eq .Values.domainType "soa") (eq .Values.domainType "soaosb") }} |
| 134 | + - path: /EssHealthCheck |
| 135 | + pathType: ImplementationSpecific |
| 136 | + backend: |
| 137 | + service: |
| 138 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.soaClusterName | lower | replace "_" "-" }}' |
| 139 | + port: |
| 140 | + number: {{ .Values.wlsDomain.soaManagedServerPort }} |
| 141 | + {{- end }} |
| 142 | + {{- if or (eq .Values.domainType "soa") (eq .Values.domainType "soaosb") }} |
| 143 | + - path: /b2bconsole |
| 144 | + pathType: ImplementationSpecific |
| 145 | + backend: |
| 146 | + service: |
| 147 | + name: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.soaClusterName | lower | replace "_" "-" }}' |
| 148 | + port: |
| 149 | + number: {{ .Values.wlsDomain.soaManagedServerPort }} |
| 150 | + {{- end }} |
| 151 | + |
| 152 | +{{- end }} |
| 153 | +{{- end }} |
| 154 | + |
0 commit comments