项目作者: gw-tester

项目描述 :
NSM Endpoint Webhook injector
高级语言: Go
项目地址: git://github.com/gw-tester/nse-injector-webhook.git
创建时间: 2021-03-10T04:04:40Z
项目社区:https://github.com/gw-tester/nse-injector-webhook

开源协议:

下载


NSE Webhook Injector

Go Report Card
GoDoc
Docker
License

Summary

This project provides a Kubernetes Mutating Admission Webhook
server that injects Network Service Mesh Endpoint sidecar.

Requirements

  • Install the latest NSM services.

  • The namespace must have enabled the sidecar injection through a label:

  1. kubectl label namespace default nse-sidecar-injection=enabled
  • The Kubernetes Pod requires at least one NSM endpoint definition:
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: example
  5. annotations:
  6. ns.networkservicemesh.io/endpoints: |
  7. {
  8. "name": "lte-network",
  9. "networkServices": [
  10. {
  11. "link": "s5u",
  12. "labels": "app=pgw-s5u",
  13. "ipaddress": "172.25.0.0/24"
  14. },
  15. {
  16. "link": "sgi",
  17. "labels": "app=http-server-sgi",
  18. "ipaddress": "10.0.1.0/24",
  19. "route": "10.0.3.0/24"
  20. }
  21. ]
  22. }
  23. spec:
  24. containers:
  25. - image: busybox:stable
  26. name: instance
  27. command:
  28. - sleep
  29. args:
  30. - infinity