k8snetworkplumbingwg / k8s-net-attach-def-controller Goto Github PK
View Code? Open in Web Editor NEWK8s Multi- network service controller
K8s Multi- network service controller
The controller unlikely to update EP after the first run. I have to restart it so the EP get update.
Anyone have same issue?
Repo and all source files are missing any kind of license, so they are basically dangerous to use.
@przemeklal @rkamudhan please add some license as technically only you are allowed to do that according to general law rules.
It looks like the FederatedService doesn't pass the annotation to the Service. Thus this controller can not update EP. Any advice?
Here is my FederatedService:
apiVersion: types.federation.k8s.io/v1alpha1
kind: FederatedService
metadata:
name: http-master
namespace: http
annotations:
k8s.v1.cni.cncf.io/networks: '[
{ "name" : "http-net",
"interfaceRequest" : "net1",
"namespace": "http" }
]'
spec:
template:
spec:
selector:
k8s-app: http
externalTrafficPolicy: Local
type: NodePort
ports:
- name: http
port: 80
targetPort: 80
placement:
clusterNames:
- cluster2
- cluster1
Here is after created:
##kubectl -n http get svc http-master -o yaml
apiVersion: v1
kind: Service
metadata:
creationTimestamp: 2019-04-10T22:43:58Z
name: http-master
namespace: http
resourceVersion: "5318548"
selfLink: /api/v1/namespaces/http/services/ebi-http-master
uid: 20efbf2b-5be2-11e9-a1aa-005056ab7186
spec:
clusterIP: 10.104.205.173
externalTrafficPolicy: Local
ports:
- name: http
nodePort: 32542
port: 80
protocol: TCP
targetPort: 80
selector:
k8s-app: http
sessionAffinity: None
type: NodePort
status:
loadBalancer: {}
##kubectl -n http get federatedservice http-master -o yaml
apiVersion: types.federation.k8s.io/v1alpha1
kind: FederatedService
metadata:
annotations:
k8s.v1.cni.cncf.io/networks: '[ { "name" : "http-net", "interfaceRequest" : "net1",
"namespace": "http" } ]'
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"types.federation.k8s.io/v1alpha1","kind":"FederatedService","metadata":{"annotations":{"k8s.v1.cni.cncf.io/networks":"[ { \"name\" : \"http-net\", \"interfaceRequest\" : \"net1\", \"namespace\": \"http\" } ]"},"name":"http-master","namespace":"http"},"spec":{"placement":{"clusterNames":["cluster2","cluster1"]},"template":{"spec":{"externalTrafficPolicy":"Local","ports":[{"name":"http","port":80,"targetPort":80}],"selector":{"k8s-app":"http"},"type":"NodePort"}}}}
creationTimestamp: 2019-04-10T18:22:20Z
finalizers:
- federation.kubernetes.io/delete-from-underlying-clusters
- orphan
generation: 1
name: http-master
namespace: http
resourceVersion: "5265918"
selfLink: /apis/types.federation.k8s.io/v1alpha1/namespaces/http/federatedservices/http-master
uid: 9412207c-5bbd-11e9-a1aa-005056ab7186
spec:
placement:
clusterNames:
- cluster2
- cluster1
template:
spec:
externalTrafficPolicy: Local
ports:
- name: http
port: 80
targetPort: 80
selector:
k8s-app: http
type: NodePort
I'm using kubernetes v1.20.4, it doesn't work for me. I completely followed the README, but the endpoint never changes to the ip of the secondary address
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.