Viewing the Service Details

To view service summary, use the following command.

kubectl get svc -n amf_namespace

Sample Output:

kubectl get svc -n amf-ins1
NAME                                     TYPE        CLUSTER-IP      EXTERNAL-IP    PORT(S)                                         AGE
alert-frwd-ops-center                    ClusterIP   46.46.34.111    <none>         8080/TCP                                        29d
amf-gosctp-lb                            ClusterIP   46.46.149.12    <none>         7084/TCP                                        36h
amf-nrf-service                          ClusterIP   46.46.227.164   172.16.186.4   9090/TCP                                        36h
amf-protocol-ep                          ClusterIP   46.46.155.167   <none>         9003/TCP,8080/TCP                               36h
amf-rest-ep                              ClusterIP   46.46.171.99    <none>         9003/TCP,8080/TCP,9201/TCP                      36h
amf-sbi-service                          ClusterIP   46.46.241.2     172.16.186.4   8070/TCP                                        36h
amf-service                              ClusterIP   46.46.168.108   <none>         9003/TCP,8080/TCP                               36h
base-entitlement-amf                     ClusterIP   46.46.114.105   <none>         8000/TCP                                        29d
bgpspeaker-pod                           ClusterIP   46.46.238.2     <none>         9008/TCP,7001/TCP,8879/TCP                      36h
datastore-notification-ep                ClusterIP   46.46.82.153    172.16.184.4   8012/TCP                                        36h
documentation                            ClusterIP   46.46.73.219    <none>         8080/TCP                                        29d
etcd                                     ClusterIP   None            <none>         2379/TCP,7070/TCP                               36h
etcd-amf-ins1-etcd-cluster-0             ClusterIP   46.46.167.73    <none>         2380/TCP,2379/TCP                               36h
etcd-amf-ins1-etcd-cluster-1             ClusterIP   46.46.144.110   <none>         2380/TCP,2379/TCP                               36h
etcd-amf-ins1-etcd-cluster-2             ClusterIP   46.46.51.186    <none>         2380/TCP,2379/TCP                               36h
grafana-dashboard-amf                    ClusterIP   46.46.124.50    <none>         9418/TCP                                        36h
grafana-dashboard-app-infra-amf-ins1     ClusterIP   46.46.72.66     <none>         9418/TCP                                        36h
grafana-dashboard-etcd-amf-ins1          ClusterIP   46.46.152.59    <none>         9418/TCP                                        36h
gtpc-ep                                  ClusterIP   46.46.197.81    <none>         9003/TCP,8080/TCP                               36h
ldap-proxy-amf-ins1-oam-pod              ClusterIP   46.46.71.103    <none>         636/TCP,389/TCP                                 36h
li-ep                                    ClusterIP   46.46.225.162   <none>         9003/TCP,8080/TCP                               36h
local-ldap-proxy-amf-ins1-ops-center     ClusterIP   46.46.178.218   <none>         636/TCP,369/TCP                                 29d
netconf-ops-center-amf-ins1-ops-center   ClusterIP   46.46.239.155   10.84.125.82   2024/TCP                                        29d
nodemgr                                  ClusterIP   46.46.232.17    <none>         9003/TCP,8884/TCP,8879/TCP,9201/TCP,8080/TCP    36h
oam-pod                                  ClusterIP   46.46.178.171   <none>         9008/TCP,7001/TCP,8879/TCP,10080/TCP,8080/TCP   36h
ops-center-amf-ins1-ops-center           ClusterIP   46.46.230.116   <none>         8008/TCP,8080/TCP,2024/TCP,2022/TCP,7681/TCP    29d
prometheus-rules-etcd                    ClusterIP   None            <none>         9419/TCP                                        36h
smart-agent-amf-ins1-ops-center          ClusterIP   46.46.9.52      <none>         8888/TCP                                        29d
ssh-ops-center-amf-ins1-ops-center       ClusterIP   46.46.97.118    10.84.125.82   2025/TCP                                        29d

To view the comprehensive service details, use the following command.

kubectl get svc -n amf_namespace service_name -o yaml

Sample Output:

kubectl get svc amf-rest-ep -n amf-ins1 -o yaml
apiVersion: v1
kind: Service
metadata:
  annotations:
    meta.helm.sh/release-name: amf-ins1-amf-rest-ep
    meta.helm.sh/release-namespace: amf-ins1
  creationTimestamp: "2021-10-16T18:00:23Z"
  labels:
    app: amf-rest-ep
    app.kubernetes.io/managed-by: Helm
    chart: amf-rest-ep-0.1.0-main-2464-211014124230-2d34ce7
    component: amf-rest-ep
    heritage: Helm
    release: amf-ins1-amf-rest-ep
  name: amf-rest-ep
  namespace: amf-ins1
  resourceVersion: "5768444"
  uid: 65cb4204-8914-4b71-aa3c-809238dd755e
spec:
  clusterIP: 46.46.171.99
  clusterIPs:
  - 46.46.171.99
  ipFamilies:
  - IPv4
  ipFamilyPolicy: SingleStack
  ports:
  - name: grpc
    port: 9003
    protocol: TCP
    targetPort: 9003
  - name: metrics
    port: 8080
    protocol: TCP
    targetPort: 8080
  - name: nrfrestep
    port: 9201
    protocol: TCP
    targetPort: 9201
  selector:
    component: amf-rest-ep
    release: amf-ins1-amf-rest-ep
  sessionAffinity: None
  type: ClusterIP
status:
  loadBalancer: {}