| Oracle® Communications Binding Support Function Cloud Native Installation and Upgrade Guide Release 1.0 F16985-01 |
|
![]() Previous |
![]() Next |
To update API-Gateway service:
kubectl edit svc
<BSF_NAME>-pcf-api-gateway-service -n <BSF_NAME_SPACE>
Table 3-1 Variables
| Field | Description |
|---|---|
| BSF_NAME | The --name value used in helm install command |
| BSF_NAME_SPACE | The --namespace value used in helm install command |
Following is an sample content that displays in API-Gateway edit window
1 # Please edit the object below. Lines beginning with a '#' will be ignored,
2 # and an empty file will abort the edit. If an error occurs while saving this file will be
3 # reopened with the relevant failures.
4 #
5 apiVersion: v1
6 kind: Service
7 metadata:
8 creationTimestamp: 2019-04-02T08:17:51Z
9 labels:
10 category: common
11 io.kompose.service: <BSF_NAME>-pcf-api-gateway-service
12 name: <BSF_NAME>-pcf-api-gateway-service
13 namespace: <BSF_NAME_SPACE>
14 resourceVersion: "25282719"
15 selfLink: /api/v1/namespaces/<BSF_NAME_SPACE>/services/<BSF_NAME>-pcf-api-gateway-service
16 uid: cec8f019-551f-11e9-acc3-a0369f714f30
17 spec:
18 clusterIP: 10.233.63.101
19 externalTrafficPolicy: Cluster
20 ports:
21 - name: http
22 nodePort: 32314
23 port: 8080
24 protocol: TCP
25 targetPort: 8080
26 selector:
27 io.kompose.service: <BSF_NAME>-pcf-api-gateway-service
28 sessionAffinity: None
29 type: NodePort
30 status:
31 loadBalancer: {}
annotations:
metallb.universe.tf/address-pool:
<ADDRESS_POOL_NAME>
Note:
Following is a sample content after replacing line 29.
1 # Please edit the object below. Lines beginning with a '#' will be ignored,
2 # and an empty file will abort the edit. If an error occurs while saving this file will be
3 # reopened with the relevant failures.
4 #
5 apiVersion: v1
6 kind: Service
7 metadata:
8 creationTimestamp: 2019-04-02T08:17:51Z
9 labels:
10 category: common
11 io.kompose.service: <BSF_NAME>-pcf-api-gateway-service
12 name: <BSF_NAME>-pcf-api-gateway-service
13 namespace: <BSF_NAME_SPACE>
14 resourceVersion: "25282719"
15 selfLink: /api/v1/namespaces/<BSF_NAME_SPACE>/services<BSF_NAME>-pcf-api-gateway-service
16 uid: cec8f019-551f-11e9-acc3-a0369f714f30
annotations:
metallb.universe.tf/address-pool: <ADDRESS_POOL_NAME>
17 spec:
18 clusterIP: 10.233.63.101
19 externalTrafficPolicy: Cluster
20 ports:
21 - name: http
22 nodePort: 32314
23 port: 8080
24 protocol: TCP
25 targetPort: 8080
26 selector:
27 io.kompose.service: <BSF_NAME>-pcf-api-gateway-service
28 sessionAffinity: None
29 type: LoadBalancer
30 status:
31 loadBalancer: {}
n the new pod, following sample content displays. Note that if the EXTERNAL-IP is available then the load balancer setting for API-Gateway service works.
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE <BSF_NAME>-pcf-api-gateway LoadBalancer 10.xxx.xx.xx 10.xxx.xxx.xx 80:30000/TCP,443:30001/TCP,8001:30373/TCP,8444:31448/TCP 4d
Updating cm-service
Follow the same process logic to update svc yaml for <BSF_NAME>-pcf-cm-service.