Sign inSign up

gwtester/nse

By gwtester

Updated over 5 years ago

Network Service Mesh Generic Endpoint

Image
0

258

gwtester/nse repository overview

Network Service Mesh Endpoint

License

Summary

This project provides a generic Network Service Mesh Endpoint which supports multiple services in one endpoint. It reads the network configuration values from the downwardAPI feature.

apiVersion: v1
kind: Pod 
metadata:
  name: pgw 
  annotations:
    ns.networkservicemesh.io/endpoints: |
      {   
        "name": "lte-network",
        "networkServices": [
          {"link": "s5u", "labels": "app=pgw-s5u", "ipaddress": "172.25.0.0/24"},
          {"link": "s5c", "labels": "app=pgw-s5c", "ipaddress": "172.25.1.0/24"},
          {"link": "sgi", "labels": "app=http-server-sgi", "ipaddress": "10.0.1.0/24", "route": "10.0.3.0/24"}
        ]   
      }   
spec:
  containers:
    - name: sidecar
      image: electrocucaracha/nse:v0.0.1
      resources:
        limits:
          networkservicemesh.io/socket: 1
      volumeMounts:
        - name: nsm-endpoints
          mountPath: /etc/nsminfo
    - image: electrocucaracha/pgw:0.0.1
      name: pgw 
      securityContext:
        capabilities:
          add: ["NET_ADMIN"]
  volumes:
    - name: nsm-endpoints
      downwardAPI:
        items:
          - path: endpoints
            fieldRef:
              fieldPath: metadata.annotations['ns.networkservicemesh.io/endpoints']

Tag summary

Content type

Image

Digest

Size

9.2 MB

Last updated

over 5 years ago

docker pull gwtester/nse:0.0.1