Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 1 | # Copyright © 2018 AT&T USA |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 14 | apiVersion: v1 |
| 15 | kind: Service |
| 16 | metadata: |
Mike Elliott | 282751f | 2018-04-19 17:24:08 -0400 | [diff] [blame] | 17 | name: {{ include "common.servicename" . }} |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 18 | namespace: {{ include "common.namespace" . }} |
| 19 | labels: |
| 20 | app: {{ include "common.name" . }} |
| 21 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 22 | release: {{ .Release.Name }} |
| 23 | heritage: {{ .Release.Service }} |
| 24 | annotations: |
| 25 | msb.onap.org/service-info: '[ |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 26 | { |
| 27 | "serviceName": "so/apih", |
| 28 | "version": "v1", |
| 29 | "url": "/onap/so/infra/cloudResources/{version:[vV][1]}/operationalEnvironments", |
| 30 | "protocol": "REST", |
| 31 | "port": "{{ .Values.service.externalPort }}", |
| 32 | "visualRange":"0", |
| 33 | "lb_policy":"ip_hash" |
| 34 | }, |
| 35 | { |
| 36 | "serviceName": "so/apih", |
| 37 | "version": "v1", |
| 38 | "url": "/onap/so/infra/cloudResources/{version:[vV][1]}/operationalEnvironments/{operationalEnvironmentId}/activate", |
| 39 | "protocol": "REST", |
| 40 | "port": "{{ .Values.service.externalPort }}", |
| 41 | "visualRange":"0", |
| 42 | "lb_policy":"ip_hash" |
| 43 | }, |
| 44 | { |
| 45 | "serviceName": "so/apih", |
| 46 | "version": "v1", |
| 47 | "url": "/onap/so/infra/cloudResources/{version:[vV][1]}/operationalEnvironments/{operationalEnvironmentId}/deactivate", |
| 48 | "protocol": "REST", |
| 49 | "port": "{{ .Values.service.externalPort }}", |
| 50 | "visualRange":"0", |
| 51 | "lb_policy":"ip_hash" |
| 52 | }, |
| 53 | { |
| 54 | "serviceName": "so/apih", |
| 55 | "version": "v1", |
| 56 | "url": "/onap/so/infra/cloudResourcesRequests/{version:[vV][1]}/{requestId}/unlock", |
| 57 | "protocol": "REST", |
| 58 | "port": "{{ .Values.service.externalPort }}", |
| 59 | "visualRange":"0", |
| 60 | "lb_policy":"ip_hash" |
| 61 | }, |
| 62 | { |
| 63 | "serviceName": "so/apih", |
| 64 | "version": "v1", |
| 65 | "url": "/onap/so/infra/cloudResourcesRequests/{version:[vV][1]}", |
| 66 | "protocol": "REST", |
| 67 | "port": "{{ .Values.service.externalPort }}", |
| 68 | "visualRange":"0", |
| 69 | "lb_policy":"ip_hash" |
| 70 | }, |
| 71 | { |
| 72 | "serviceName": "so/apih", |
| 73 | "version": "v1", |
| 74 | "url": "/onap/so/infra/orchestrationRequests/{version:[vV][4-7]}/{requestId}", |
| 75 | "protocol": "REST", |
| 76 | "port": "{{ .Values.service.externalPort }}", |
| 77 | "visualRange":"0", |
| 78 | "lb_policy":"ip_hash" |
| 79 | }, |
| 80 | { |
| 81 | "serviceName": "so/apih", |
| 82 | "version": "v1", |
| 83 | "url": "/onap/so/infra/orchestrationRequests/{version:[vV][4-7]}", |
| 84 | "protocol": "REST", |
| 85 | "port": "{{ .Values.service.externalPort }}", |
| 86 | "visualRange":"0", |
| 87 | "lb_policy":"ip_hash" |
| 88 | }, |
| 89 | { |
| 90 | "serviceName": "so/apih", |
| 91 | "version": "v1", |
| 92 | "url": "/onap/so/infra/orchestrationRequests/{version:[vV][4-7]}/{requestId}/unlock", |
| 93 | "protocol": "REST", |
| 94 | "port": "{{ .Values.service.externalPort }}", |
| 95 | "visualRange":"0", |
| 96 | "lb_policy":"ip_hash" |
| 97 | }, |
| 98 | { |
| 99 | "serviceName": "so/apih", |
| 100 | "version": "v1", |
| 101 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances", |
| 102 | "protocol": "REST", |
| 103 | "port": "{{ .Values.service.externalPort }}", |
| 104 | "visualRange":"0", |
| 105 | "lb_policy":"ip_hash" |
| 106 | }, |
| 107 | { |
| 108 | "serviceName": "so/apih", |
| 109 | "version": "v1", |
| 110 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/activate", |
| 111 | "protocol": "REST", |
| 112 | "port": "{{ .Values.service.externalPort }}", |
| 113 | "visualRange":"0", |
| 114 | "lb_policy":"ip_hash" |
| 115 | }, |
| 116 | { |
| 117 | "serviceName": "so/apih", |
| 118 | "version": "v1", |
| 119 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/deactivate", |
| 120 | "protocol": "REST", |
| 121 | "port": "{{ .Values.service.externalPort }}", |
| 122 | "visualRange":"0", |
| 123 | "lb_policy":"ip_hash" |
| 124 | }, |
| 125 | { |
| 126 | "serviceName": "so/apih", |
| 127 | "version": "v1", |
| 128 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}", |
| 129 | "protocol": "REST", |
| 130 | "port": "{{ .Values.service.externalPort }}", |
| 131 | "visualRange":"0", |
| 132 | "lb_policy":"ip_hash" |
| 133 | }, |
| 134 | { |
| 135 | "serviceName": "so/apih", |
| 136 | "version": "v1", |
| 137 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][7]}/serviceInstances/assign", |
| 138 | "protocol": "REST", |
| 139 | "port": "{{ .Values.service.externalPort }}", |
| 140 | "visualRange":"0", |
| 141 | "lb_policy":"ip_hash" |
| 142 | }, |
| 143 | { |
| 144 | "serviceName": "so/apih", |
| 145 | "version": "v1", |
| 146 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][7]}/serviceInstances/{serviceInstanceId}/unassign", |
| 147 | "protocol": "REST", |
| 148 | "port": "{{ .Values.service.externalPort }}", |
| 149 | "visualRange":"0", |
| 150 | "lb_policy":"ip_hash" |
| 151 | }, |
| 152 | { |
| 153 | "serviceName": "so/apih", |
| 154 | "version": "v1", |
| 155 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/configurations", |
| 156 | "protocol": "REST", |
| 157 | "port": "{{ .Values.service.externalPort }}", |
| 158 | "visualRange":"0", |
| 159 | "lb_policy":"ip_hash" |
| 160 | }, |
| 161 | { |
| 162 | "serviceName": "so/apih", |
| 163 | "version": "v1", |
| 164 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/configurations/{configurationInstanceId}", |
| 165 | "protocol": "REST", |
| 166 | "port": "{{ .Values.service.externalPort }}", |
| 167 | "visualRange":"0", |
| 168 | "lb_policy":"ip_hash" |
| 169 | }, |
| 170 | { |
| 171 | "serviceName": "so/apih", |
| 172 | "version": "v1", |
| 173 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/configurations/{configurationInstanceId}/enablePort", |
| 174 | "protocol": "REST", |
| 175 | "port": "{{ .Values.service.externalPort }}", |
| 176 | "visualRange":"0", |
| 177 | "lb_policy":"ip_hash" |
| 178 | }, |
| 179 | { |
| 180 | "serviceName": "so/apih", |
| 181 | "version": "v1", |
| 182 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/configurations/{configurationInstanceId}/disablePort", |
| 183 | "protocol": "REST", |
| 184 | "port": "{{ .Values.service.externalPort }}", |
| 185 | "visualRange":"0", |
| 186 | "lb_policy":"ip_hash" |
| 187 | }, |
| 188 | { |
| 189 | "serviceName": "so/apih", |
| 190 | "version": "v1", |
| 191 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/configurations/{configurationInstanceId}/activate", |
| 192 | "protocol": "REST", |
| 193 | "port": "{{ .Values.service.externalPort }}", |
| 194 | "visualRange":"0", |
| 195 | "lb_policy":"ip_hash" |
| 196 | }, |
| 197 | { |
| 198 | "serviceName": "so/apih", |
| 199 | "version": "v1", |
| 200 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/configurations/{configurationInstanceId}/deactivate", |
| 201 | "protocol": "REST", |
| 202 | "port": "{{ .Values.service.externalPort }}", |
| 203 | "visualRange":"0", |
| 204 | "lb_policy":"ip_hash" |
| 205 | }, |
| 206 | { |
| 207 | "serviceName": "so/apih", |
| 208 | "version": "v1", |
| 209 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][6-7]}/serviceInstances/{serviceInstanceId}/addRelationships", |
| 210 | "protocol": "REST", |
| 211 | "port": "{{ .Values.service.externalPort }}", |
| 212 | "visualRange":"0", |
| 213 | "lb_policy":"ip_hash" |
| 214 | }, |
| 215 | { |
| 216 | "serviceName": "so/apih", |
| 217 | "version": "v1", |
| 218 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][6-7]}/serviceInstances/{serviceInstanceId}/removeRelationships", |
| 219 | "protocol": "REST", |
| 220 | "port": "{{ .Values.service.externalPort }}", |
| 221 | "visualRange":"0", |
| 222 | "lb_policy":"ip_hash" |
| 223 | }, |
| 224 | { |
| 225 | "serviceName": "so/apih", |
| 226 | "version": "v1", |
| 227 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs", |
| 228 | "protocol": "REST", |
| 229 | "port": "{{ .Values.service.externalPort }}", |
| 230 | "visualRange":"0", |
| 231 | "lb_policy":"ip_hash" |
| 232 | }, |
| 233 | { |
| 234 | "serviceName": "so/apih", |
| 235 | "version": "v1", |
| 236 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/replace", |
| 237 | "protocol": "REST", |
| 238 | "port": "{{ .Values.service.externalPort }}", |
| 239 | "visualRange":"0", |
| 240 | "lb_policy":"ip_hash" |
| 241 | }, |
| 242 | { |
| 243 | "serviceName": "so/apih", |
| 244 | "version": "v1", |
| 245 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}", |
| 246 | "protocol": "REST", |
| 247 | "port": "{{ .Values.service.externalPort }}", |
| 248 | "visualRange":"0", |
| 249 | "lb_policy":"ip_hash" |
| 250 | }, |
| 251 | { |
| 252 | "serviceName": "so/apih", |
| 253 | "version": "v1", |
| 254 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][6-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/applyUpdatedConfig", |
| 255 | "protocol": "REST", |
| 256 | "port": "{{ .Values.service.externalPort }}", |
| 257 | "visualRange":"0", |
| 258 | "lb_policy":"ip_hash" |
| 259 | }, |
| 260 | { |
| 261 | "serviceName": "so/apih", |
| 262 | "version": "v1", |
| 263 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}", |
| 264 | "protocol": "REST", |
| 265 | "port": "{{ .Values.service.externalPort }}", |
| 266 | "visualRange":"0", |
| 267 | "lb_policy":"ip_hash" |
| 268 | }, |
| 269 | { |
| 270 | "serviceName": "so/apih", |
| 271 | "version": "v1", |
| 272 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules", |
| 273 | "protocol": "REST", |
| 274 | "port": "{{ .Values.service.externalPort }}", |
| 275 | "visualRange":"0", |
| 276 | "lb_policy":"ip_hash" |
| 277 | }, |
| 278 | { |
| 279 | "serviceName": "so/apih", |
| 280 | "version": "v1", |
| 281 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfmoduleInstanceId}/replace", |
| 282 | "protocol": "REST", |
| 283 | "port": "{{ .Values.service.externalPort }}", |
| 284 | "visualRange":"0", |
| 285 | "lb_policy":"ip_hash" |
| 286 | }, |
| 287 | { |
| 288 | "serviceName": "so/apih", |
| 289 | "version": "v1", |
| 290 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfmoduleInstanceId}", |
| 291 | "protocol": "REST", |
| 292 | "port": "{{ .Values.service.externalPort }}", |
| 293 | "visualRange":"0", |
| 294 | "lb_policy":"ip_hash" |
| 295 | }, |
| 296 | { |
| 297 | "serviceName": "so/apih", |
| 298 | "version": "v1", |
| 299 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][6-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/inPlaceSoftwareUpdate", |
| 300 | "protocol": "REST", |
| 301 | "port": "{{ .Values.service.externalPort }}", |
| 302 | "visualRange":"0", |
| 303 | "lb_policy":"ip_hash" |
| 304 | }, |
| 305 | { |
| 306 | "serviceName": "so/apih", |
| 307 | "version": "v1", |
| 308 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfmoduleInstanceId}", |
| 309 | "protocol": "REST", |
| 310 | "port": "{{ .Values.service.externalPort }}", |
| 311 | "visualRange":"0", |
| 312 | "lb_policy":"ip_hash" |
| 313 | }, |
| 314 | { |
| 315 | "serviceName": "so/apih", |
| 316 | "version": "v1", |
| 317 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfmoduleInstanceId}/deactivateAndCloudDelete", |
| 318 | "protocol": "REST", |
| 319 | "port": "{{ .Values.service.externalPort }}", |
| 320 | "visualRange":"0", |
| 321 | "lb_policy":"ip_hash" |
| 322 | }, |
| 323 | { |
| 324 | "serviceName": "so/apih", |
| 325 | "version": "v1", |
| 326 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/scaleOut", |
| 327 | "protocol": "REST", |
| 328 | "port": "{{ .Values.service.externalPort }}", |
| 329 | "visualRange":"0", |
| 330 | "lb_policy":"ip_hash" |
| 331 | }, |
| 332 | { |
| 333 | "serviceName": "so/apih", |
| 334 | "version": "v1", |
| 335 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/volumeGroups", |
| 336 | "protocol": "REST", |
| 337 | "port": "{{ .Values.service.externalPort }}", |
| 338 | "visualRange":"0", |
| 339 | "lb_policy":"ip_hash" |
| 340 | }, |
| 341 | { |
| 342 | "serviceName": "so/apih", |
| 343 | "version": "v1", |
| 344 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/volumeGroups/{volumeGroupInstanceId}", |
| 345 | "protocol": "REST", |
| 346 | "port": "{{ .Values.service.externalPort }}", |
| 347 | "visualRange":"0", |
| 348 | "lb_policy":"ip_hash" |
| 349 | }, |
| 350 | { |
| 351 | "serviceName": "so/apih", |
| 352 | "version": "v1", |
| 353 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/vnfs/{vnfInstanceId}/volumeGroups/{volumeGroupInstanceId}", |
| 354 | "protocol": "REST", |
| 355 | "port": "{{ .Values.service.externalPort }}", |
| 356 | "visualRange":"0", |
| 357 | "lb_policy":"ip_hash" |
| 358 | }, |
| 359 | { |
| 360 | "serviceName": "so/apih", |
| 361 | "version": "v1", |
| 362 | "url": "/onap/so/infra/serviceInstantiation/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/networks", |
| 363 | "protocol": "REST", |
| 364 | "port": "{{ .Values.service.externalPort }}", |
| 365 | "visualRange":"0", |
| 366 | "lb_policy":"ip_hash" |
| 367 | }, |
| 368 | { |
| 369 | "serviceName": "so/apih", |
| 370 | "version": "v1", |
| 371 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/networks/{networkInstanceId}", |
| 372 | "protocol": "REST", |
| 373 | "port": "{{ .Values.service.externalPort }}", |
| 374 | "visualRange":"0", |
| 375 | "lb_policy":"ip_hash" |
| 376 | }, |
| 377 | { |
| 378 | "serviceName": "so/apih", |
| 379 | "version": "v1", |
| 380 | "url": "/onap/so/infra/serviceInstantiationRequests/{version:[vV][5-7]}/serviceInstances/{serviceInstanceId}/networks/{networkInstanceId}", |
| 381 | "protocol": "REST", |
| 382 | "port": "{{ .Values.service.externalPort }}", |
| 383 | "visualRange":"0", |
| 384 | "lb_policy":"ip_hash" |
| 385 | } |
| 386 | ]' |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 387 | spec: |
| 388 | type: {{ .Values.service.type }} |
| 389 | ports: |
| 390 | {{if eq .Values.service.type "NodePort" -}} |
| 391 | - port: {{ .Values.service.internalPort }} |
Mike Elliott | 282751f | 2018-04-19 17:24:08 -0400 | [diff] [blame] | 392 | nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} |
| 393 | name: {{ .Values.service.portName }} |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 394 | {{- else -}} |
| 395 | - port: {{ .Values.service.externalPort }} |
| 396 | targetPort: {{ .Values.service.internalPort }} |
Mike Elliott | 282751f | 2018-04-19 17:24:08 -0400 | [diff] [blame] | 397 | name: {{ .Values.service.portName }} |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 398 | {{- end}} |
| 399 | selector: |
| 400 | app: {{ include "common.name" . }} |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 401 | release: {{ .Release.Name }} |