├── ansible ├── inventory │ ├── inventory │ └── localhost.ini ├── roles │ ├── nuage-ca │ │ ├── files │ │ │ ├── serial.txt │ │ │ └── openssl.cnf │ │ └── meta │ │ │ └── main.yml │ ├── contiv │ │ ├── files │ │ │ ├── netmaster.env │ │ │ └── contiv_cni.conf │ │ ├── meta │ │ │ └── main.yml │ │ ├── templates │ │ │ ├── contiv.cfg.j2 │ │ │ ├── netmaster.service │ │ │ ├── netplugin.service │ │ │ ├── aci-gw.service │ │ │ └── netplugin.j2 │ │ ├── tasks │ │ │ ├── main.yml │ │ │ ├── packageManagerInstall.yml │ │ │ ├── default_network.yml │ │ │ ├── netmaster_firewalld.yml │ │ │ ├── ovs.yml │ │ │ └── netmaster_iptables.yml │ │ └── handlers │ │ │ └── main.yml │ ├── etcd │ │ ├── meta │ │ │ └── main.yml │ │ ├── files │ │ │ ├── 10-conf-file.conf │ │ │ ├── etcd.service │ │ │ └── etcd.upstart │ │ ├── tasks │ │ │ ├── etcd-restart.yml │ │ │ ├── etcd2-restart.yml │ │ │ ├── start.yml │ │ │ ├── restart.yml │ │ │ ├── etcd-stop.yml │ │ │ ├── etcd2-stop.yml │ │ │ ├── etcd-start.yml │ │ │ ├── etcd-configure.yml │ │ │ ├── etcd2-start.yml │ │ │ ├── configure.yml │ │ │ ├── main.yml │ │ │ └── etcd2-configure.yml │ │ └── handlers │ │ │ └── main.yml │ ├── flannel │ │ ├── meta │ │ │ └── main.yml │ │ ├── templates │ │ │ ├── flannel-conf.json.j2 │ │ │ ├── flanneld.upstart │ │ │ ├── flanneld.service │ │ │ └── flanneld.j2 │ │ ├── tasks │ │ │ ├── upstart-service.yml │ │ │ ├── ubuntu.yml │ │ │ └── main.yml │ │ └── files │ │ │ └── 40-docker-depends-on-flannel.conf │ ├── opencontrail │ │ ├── templates │ │ │ ├── route-gateway0.j2 │ │ │ ├── route-gateway1.j2 │ │ │ ├── ifcfg-gateway.j2 │ │ │ ├── ifcfg-eth.j2 │ │ │ ├── node-route-redhat.j2 │ │ │ ├── ifcfg-vhost0.j2 │ │ │ ├── interface.cfg.j2 │ │ │ ├── kube-network.conf.j2 │ │ │ ├── contrail-control.conf.j2 │ │ │ ├── contrail-vrouter-agent.conf.node.j2 │ │ │ ├── Dockerfile.debian.j2 │ │ │ ├── Dockerfile.redhat.j2 │ │ │ └── gateway.cfg.j2 │ │ ├── files │ │ │ ├── vrouter.conf │ │ │ ├── ifdown-vhost │ │ │ ├── contrail-vrouter-agent.service │ │ │ ├── contrail-vrouter-agent.upstart │ │ │ └── kube-network-manager.manifest │ │ ├── meta │ │ │ └── main.yml │ │ └── tasks │ │ │ ├── nodes-redhat.yml │ │ │ ├── masters-services.yml │ │ │ ├── masters-control.yml │ │ │ ├── masters.yml │ │ │ ├── masters-config.yml │ │ │ ├── vrouter-ubuntu.yml │ │ │ ├── kmod.yml │ │ │ ├── gateway-redhat.yml │ │ │ ├── main.yml │ │ │ ├── gateway-ubuntu.yml │ │ │ └── vrouter-redhat.yml │ ├── master │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ ├── kubelet-restart.yml │ │ │ ├── apiserver-restart.yml │ │ │ ├── scheduler-restart.yml │ │ │ ├── controller-manager-restart.yml │ │ │ ├── kubectl-configure.yml │ │ │ ├── kubelet-start.yml │ │ │ ├── apiserver-start.yml │ │ │ ├── kubelet-configure.yml │ │ │ ├── scheduler-start.yml │ │ │ ├── ubuntu-post.yml │ │ │ ├── controller-manager-start.yml │ │ │ ├── scheduler-configure.yml │ │ │ ├── firewalld.yml │ │ │ ├── pkgMgrInstallers │ │ │ │ ├── generic-install.yml │ │ │ │ └── fedora-install.yml │ │ │ ├── controller-manager-configure.yml │ │ │ ├── iptables.yml │ │ │ ├── collect-tokens.yml │ │ │ └── install_rpms.yml │ │ ├── templates │ │ │ ├── scheduler.j2 │ │ │ ├── kube-scheduler-default.j2 │ │ │ ├── kube-scheduler-dropin.j2 │ │ │ ├── kube-controller-manager-dropin.j2 │ │ │ ├── kube-controller-manager-default.j2 │ │ │ ├── controller-manager.j2 │ │ │ ├── kube-apiserver-dropin.j2 │ │ │ ├── kubectl.kubeconfig.j2 │ │ │ ├── scheduler.kubeconfig.j2 │ │ │ ├── kube-apiserver-default.j2 │ │ │ ├── controller-manager.kubeconfig.j2 │ │ │ └── kubelet.j2 │ │ └── files │ │ │ └── delay-master-services.target │ ├── node │ │ ├── meta │ │ │ └── main.yml │ │ ├── files │ │ │ ├── kubernetes-accounting.conf │ │ │ └── delay-node-services.target │ │ ├── tasks │ │ │ ├── proxy-restart.yml │ │ │ ├── kubelet-restart.yml │ │ │ ├── pkgMgrInstallers │ │ │ │ ├── generic-install.yml │ │ │ │ ├── fedora-install.yml │ │ │ │ └── centos-install.yml │ │ │ ├── proxy-start.yml │ │ │ ├── kubelet-start.yml │ │ │ ├── ubuntu-post.yml │ │ │ ├── install_rpms.yml │ │ │ ├── proxy-configure.yml │ │ │ ├── collect-tokens.yml │ │ │ ├── fluentd-install.yml │ │ │ └── kubelet-configure.yml │ │ ├── templates │ │ │ ├── proxy.j2 │ │ │ ├── kube-proxy-default.j2 │ │ │ ├── kube-proxy-dropin.j2 │ │ │ ├── kubelet-dropin.j2 │ │ │ ├── kubelet-default.j2 │ │ │ ├── proxy.kubeconfig.j2 │ │ │ └── kubelet.kubeconfig.j2 │ │ ├── defaults │ │ │ └── main.yml │ │ └── handlers │ │ │ └── main.yml │ ├── common │ │ ├── handlers │ │ │ └── main.yml │ │ ├── tasks │ │ │ ├── fedora-install.yml │ │ │ └── rpm.yml │ │ └── defaults │ │ │ └── main.yaml │ ├── kubernetes-addons │ │ ├── meta │ │ │ └── main.yml │ │ ├── files │ │ │ └── common │ │ │ │ └── namespace.yaml │ │ ├── templates │ │ │ ├── cluster-monitoring │ │ │ │ ├── heapster-service.yaml.j2 │ │ │ │ ├── influxdb-service.yaml.j2 │ │ │ │ └── grafana-service.yaml.j2 │ │ │ ├── kube-addons.upstart.j2 │ │ │ ├── kube-ui │ │ │ │ └── dashboard-service.yaml.j2 │ │ │ ├── cluster-logging │ │ │ │ ├── kibana-service.yaml.j2 │ │ │ │ └── es-service.yaml.j2 │ │ │ ├── kube-dash │ │ │ │ └── kube-dash-svc.yaml.j2 │ │ │ ├── dns │ │ │ │ └── skydns-svc.yaml.j2 │ │ │ └── kube-addons.service.j2 │ │ ├── tasks │ │ │ ├── dns.yml │ │ │ ├── generic-install.yml │ │ │ ├── kube-ui.yml │ │ │ ├── kube-dash.yml │ │ │ ├── cluster-logging.yml │ │ │ └── cluster-monitoring.yml │ │ ├── defaults │ │ │ └── main.yml │ │ └── handlers │ │ │ └── main.yml │ ├── nuage-master │ │ ├── defaults │ │ │ └── main.yml │ │ ├── files │ │ │ └── nuage-serviceaccount.yaml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── tokens.yml │ │ ├── templates │ │ │ └── nuage.kubeconfig.j2 │ │ └── handlers │ │ │ └── main.yml │ ├── opencontrail-provision │ │ ├── files │ │ │ └── namespace.yml │ │ └── tasks │ │ │ ├── main.yml │ │ │ └── nodes.yml │ ├── docker │ │ ├── files │ │ │ └── 10-env-file.conf │ │ ├── templates │ │ │ ├── docker.list.j2 │ │ │ └── dockerrepo.repo.j2 │ │ └── tasks │ │ │ ├── generic-install.yml │ │ │ ├── custom-repo-install.yml │ │ │ ├── coreos.yml │ │ │ ├── install-rpms.yml │ │ │ ├── debian-install.yml │ │ │ ├── apt-docker-install.yml │ │ │ └── install.yml │ ├── lb │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ └── defaults │ │ │ └── main.yml │ ├── kubernetes │ │ └── tasks │ │ │ ├── configure.yml │ │ │ ├── main.yml │ │ │ └── override_facts.yml │ ├── nuage-node │ │ ├── handlers │ │ │ └── main.yml │ │ └── meta │ │ │ └── main.yml │ └── pre-ansible │ │ ├── tasks │ │ └── fedora-dnf.yml │ │ └── defaults │ │ └── main.yml ├── .gitignore ├── OWNERS ├── playbooks │ ├── deploy-cluster.retry │ ├── deploy-addons.yml │ ├── deploy-etcd.yml │ ├── deploy-node.yml │ ├── deploy-preansible.yml │ ├── deploy-master.yml │ └── deploy-docker.yml ├── vagrant │ ├── .gitignore │ ├── openstack_config.yml.example │ └── ansible.cfg └── scripts │ ├── ansible.cfg.new │ └── ansible.cfg ├── nuagekubemon ├── vendor │ ├── github.com │ │ ├── spf13 │ │ │ └── pflag │ │ │ │ ├── go.sum │ │ │ │ ├── .gitignore │ │ │ │ ├── go.mod │ │ │ │ └── .travis.yml │ │ ├── jmcvetta │ │ │ └── napping │ │ │ │ ├── VERSION │ │ │ │ ├── circle.yml │ │ │ │ ├── .travis.yml │ │ │ │ ├── .gitignore │ │ │ │ └── util.go │ │ ├── modern-go │ │ │ ├── reflect2 │ │ │ │ ├── reflect2_amd64.s │ │ │ │ ├── relfect2_386.s │ │ │ │ ├── relfect2_arm.s │ │ │ │ ├── relfect2_arm64.s │ │ │ │ ├── relfect2_mips64x.s │ │ │ │ ├── relfect2_mipsx.s │ │ │ │ ├── relfect2_ppc64x.s │ │ │ │ ├── relfect2_s390x.s │ │ │ │ ├── relfect2_amd64p32.s │ │ │ │ ├── .gitignore │ │ │ │ ├── go_below_17.go │ │ │ │ ├── go_above_17.go │ │ │ │ ├── .travis.yml │ │ │ │ ├── go_below_19.go │ │ │ │ ├── go_above_19.go │ │ │ │ ├── test.sh │ │ │ │ └── Gopkg.lock │ │ │ └── concurrent │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── go_above_19.go │ │ │ │ ├── test.sh │ │ │ │ ├── log.go │ │ │ │ └── executor.go │ │ ├── google │ │ │ ├── uuid │ │ │ │ ├── go.mod │ │ │ │ ├── .travis.yml │ │ │ │ ├── CONTRIBUTORS │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ ├── doc.go │ │ │ │ └── node_js.go │ │ │ ├── gofuzz │ │ │ │ ├── go.mod │ │ │ │ └── .travis.yml │ │ │ └── go-cmp │ │ │ │ └── cmp │ │ │ │ ├── internal │ │ │ │ ├── flags │ │ │ │ │ ├── toolchain_recent.go │ │ │ │ │ ├── flags.go │ │ │ │ │ └── toolchain_legacy.go │ │ │ │ └── diff │ │ │ │ │ └── debug_disable.go │ │ │ │ └── export_panic.go │ │ ├── sirupsen │ │ │ └── logrus │ │ │ │ ├── .gitignore │ │ │ │ ├── terminal_check_appengine.go │ │ │ │ ├── terminal_check_no_terminal.go │ │ │ │ ├── terminal_check_solaris.go │ │ │ │ ├── terminal_check_unix.go │ │ │ │ ├── terminal_check_bsd.go │ │ │ │ ├── terminal_check_notappengine.go │ │ │ │ ├── appveyor.yml │ │ │ │ └── go.mod │ │ ├── kardianos │ │ │ └── osext │ │ │ │ ├── go.mod │ │ │ │ ├── osext_go18.go │ │ │ │ └── osext_plan9.go │ │ ├── gorilla │ │ │ └── mux │ │ │ │ ├── go.mod │ │ │ │ └── AUTHORS │ │ ├── json-iterator │ │ │ └── go │ │ │ │ ├── .codecov.yml │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── test.sh │ │ │ │ ├── go.mod │ │ │ │ └── build.sh │ │ ├── onsi │ │ │ └── gomega │ │ │ │ ├── .gitignore │ │ │ │ ├── matchers │ │ │ │ ├── support │ │ │ │ │ └── goraph │ │ │ │ │ │ ├── util │ │ │ │ │ │ └── util.go │ │ │ │ │ │ └── node │ │ │ │ │ │ └── node.go │ │ │ │ ├── attributes_slice.go │ │ │ │ └── be_nil_matcher.go │ │ │ │ ├── Makefile │ │ │ │ ├── .travis.yml │ │ │ │ └── go.mod │ │ ├── BurntSushi │ │ │ └── toml │ │ │ │ ├── session.vim │ │ │ │ ├── .gitignore │ │ │ │ ├── COMPATIBLE │ │ │ │ ├── .travis.yml │ │ │ │ ├── Makefile │ │ │ │ ├── encoding_types_1.1.go │ │ │ │ └── encoding_types.go │ │ ├── hashicorp │ │ │ └── golang-lru │ │ │ │ ├── go.mod │ │ │ │ ├── .gitignore │ │ │ │ └── README.md │ │ ├── nuagenetworks │ │ │ └── go-bambou │ │ │ │ └── bambou │ │ │ │ └── bambou.goconvey │ │ ├── konsorten │ │ │ └── go-windows-terminal-sequences │ │ │ │ ├── go.mod │ │ │ │ └── sequences_dummy.go │ │ ├── googleapis │ │ │ └── gnostic │ │ │ │ ├── compiler │ │ │ │ └── README.md │ │ │ │ └── extensions │ │ │ │ └── README.md │ │ ├── coreos │ │ │ ├── etcd │ │ │ │ └── NOTICE │ │ │ ├── pkg │ │ │ │ └── NOTICE │ │ │ └── go-systemd │ │ │ │ └── NOTICE │ │ ├── golang │ │ │ └── protobuf │ │ │ │ ├── AUTHORS │ │ │ │ └── CONTRIBUTORS │ │ ├── imdario │ │ │ └── mergo │ │ │ │ ├── .travis.yml │ │ │ │ └── .gitignore │ │ └── gogo │ │ │ └── protobuf │ │ │ └── AUTHORS │ ├── google.golang.org │ │ ├── grpc │ │ │ ├── AUTHORS │ │ │ ├── GOVERNANCE.md │ │ │ ├── CODE-OF-CONDUCT.md │ │ │ ├── install_gae.sh │ │ │ └── go.mod │ │ └── appengine │ │ │ └── internal │ │ │ ├── identity_flex.go │ │ │ ├── main_common.go │ │ │ ├── main.go │ │ │ └── base │ │ │ └── api_base.proto │ ├── golang.org │ │ └── x │ │ │ ├── net │ │ │ ├── http2 │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ └── not_go111.go │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ │ │ ├── sys │ │ │ ├── unix │ │ │ │ ├── .gitignore │ │ │ │ ├── endian_big.go │ │ │ │ ├── endian_little.go │ │ │ │ ├── constants.go │ │ │ │ ├── syscall_darwin_386.1_11.go │ │ │ │ ├── syscall_darwin_amd64.1_11.go │ │ │ │ ├── syscall_darwin_arm.1_11.go │ │ │ │ ├── syscall_darwin_arm64.1_11.go │ │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ │ ├── zsyscall_darwin_386.1_13.s │ │ │ │ ├── zsyscall_darwin_arm.1_13.s │ │ │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ │ │ ├── zsyscall_darwin_arm64.1_13.s │ │ │ │ ├── aliases.go │ │ │ │ ├── pagesize_unix.go │ │ │ │ ├── readdirent_getdents.go │ │ │ │ ├── fcntl_linux_32bit.go │ │ │ │ ├── asm_aix_ppc64.s │ │ │ │ ├── asm_solaris_amd64.s │ │ │ │ ├── gccgo_linux_amd64.go │ │ │ │ ├── syscall_linux_gc.go │ │ │ │ ├── race0.go │ │ │ │ ├── sockcmsg_dragonfly.go │ │ │ │ ├── syscall_linux_gc_386.go │ │ │ │ └── fcntl_darwin.go │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── windows │ │ │ │ ├── empty.s │ │ │ │ ├── aliases.go │ │ │ │ ├── mksyscall.go │ │ │ │ ├── race0.go │ │ │ │ ├── types_windows_386.go │ │ │ │ ├── types_windows_arm.go │ │ │ │ ├── types_windows_amd64.go │ │ │ │ └── str.go │ │ │ ├── xerrors │ │ │ ├── codereview.cfg │ │ │ ├── go.mod │ │ │ ├── README │ │ │ └── internal │ │ │ │ └── internal.go │ │ │ ├── lint │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ └── golint │ │ │ │ └── importcomment.go │ │ │ ├── crypto │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── ssh │ │ │ │ └── terminal │ │ │ │ ├── util_linux.go │ │ │ │ ├── util_aix.go │ │ │ │ └── util_bsd.go │ │ │ ├── oauth2 │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── internal │ │ │ │ ├── doc.go │ │ │ │ └── client_appengine.go │ │ │ ├── go.mod │ │ │ └── .travis.yml │ │ │ ├── text │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── language │ │ │ │ └── go1_2.go │ │ │ ├── secure │ │ │ │ └── bidirule │ │ │ │ │ ├── bidirule10.0.0.go │ │ │ │ │ └── bidirule9.0.0.go │ │ │ ├── encoding │ │ │ │ ├── japanese │ │ │ │ │ └── all.go │ │ │ │ └── simplifiedchinese │ │ │ │ │ └── all.go │ │ │ └── internal │ │ │ │ └── language │ │ │ │ └── common.go │ │ │ ├── time │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ │ │ └── tools │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── internal │ │ │ └── packagesinternal │ │ │ │ └── packages.go │ │ │ └── go │ │ │ ├── ast │ │ │ └── astutil │ │ │ │ └── util.go │ │ │ └── internal │ │ │ └── gcimporter │ │ │ └── newInterface11.go │ ├── go.uber.org │ │ ├── tools │ │ │ └── update-license │ │ │ │ └── .gitignore │ │ ├── multierr │ │ │ ├── .gitignore │ │ │ ├── glide.yaml │ │ │ ├── go.mod │ │ │ └── .travis.yml │ │ ├── atomic │ │ │ ├── .gitignore │ │ │ ├── go.mod │ │ │ └── .travis.yml │ │ └── zap │ │ │ ├── go.mod │ │ │ ├── checklicense.sh │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── k8s.io │ │ ├── client-go │ │ │ ├── pkg │ │ │ │ ├── version │ │ │ │ │ └── .gitattributes │ │ │ │ └── apis │ │ │ │ │ └── clientauthentication │ │ │ │ │ └── OWNERS │ │ │ ├── util │ │ │ │ ├── retry │ │ │ │ │ └── OWNERS │ │ │ │ ├── keyutil │ │ │ │ │ └── OWNERS │ │ │ │ └── cert │ │ │ │ │ └── OWNERS │ │ │ ├── tools │ │ │ │ ├── metrics │ │ │ │ │ └── OWNERS │ │ │ │ └── auth │ │ │ │ │ └── OWNERS │ │ │ ├── transport │ │ │ │ └── OWNERS │ │ │ └── rest │ │ │ │ └── OWNERS │ │ ├── klog │ │ │ ├── go.mod │ │ │ ├── code-of-conduct.md │ │ │ ├── go.sum │ │ │ ├── OWNERS │ │ │ ├── .travis.yml │ │ │ ├── RELEASE.md │ │ │ └── SECURITY_CONTACTS │ │ └── apimachinery │ │ │ └── pkg │ │ │ ├── api │ │ │ ├── resource │ │ │ │ └── OWNERS │ │ │ ├── meta │ │ │ │ └── OWNERS │ │ │ └── errors │ │ │ │ └── OWNERS │ │ │ └── apis │ │ │ └── meta │ │ │ └── v1 │ │ │ └── OWNERS │ ├── gopkg.in │ │ └── yaml.v2 │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ └── NOTICE │ ├── honnef.co │ │ └── go │ │ │ └── tools │ │ │ ├── ssa │ │ │ ├── write.go │ │ │ ├── identical_17.go │ │ │ ├── identical.go │ │ │ └── staticcheck.conf │ │ │ ├── version │ │ │ └── buildinfo111.go │ │ │ ├── lint │ │ │ ├── lintutil │ │ │ │ ├── stats.go │ │ │ │ ├── stats_posix.go │ │ │ │ └── stats_bsd.go │ │ │ └── stats.go │ │ │ ├── printf │ │ │ └── fuzz.go │ │ │ ├── config │ │ │ └── example.conf │ │ │ ├── cmd │ │ │ └── staticcheck │ │ │ │ └── README.md │ │ │ ├── simple │ │ │ └── CONTRIBUTING.md │ │ │ ├── staticcheck │ │ │ ├── CONTRIBUTING.md │ │ │ └── buildtag.go │ │ │ └── facts │ │ │ └── token.go │ ├── sigs.k8s.io │ │ └── yaml │ │ │ ├── go.mod │ │ │ ├── code-of-conduct.md │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── yaml_go110.go │ │ │ ├── OWNERS │ │ │ └── RELEASE.md │ └── go.etcd.io │ │ └── etcd │ │ └── NOTICE ├── strongswan-docker │ ├── fetch-strongswan │ ├── Dockerfile │ └── Makefile ├── scripts │ ├── Makefile │ └── build-nuage-infra-docker-image.sh ├── net-config.yaml.template ├── testfiles │ └── nuagekubemon-config.yaml ├── Dockerfile └── pkg │ └── policyapi │ └── policies │ ├── Makefile │ └── default-policy.go ├── kubernetes-ha-deployment ├── node │ └── worker.env ├── cleanup_node.sh └── etcd │ └── etcd.env ├── demo-scripts ├── pod-no-pg.yaml ├── README.md ├── pod.yaml ├── new-nginx-service.yaml └── new-nginx-deployment.yaml ├── README.md ├── sample-jsons ├── mysql-service.yaml ├── nginx_pod.yaml ├── service.yaml └── mysql-pod.yaml └── .zuul.yaml /ansible/inventory/inventory: -------------------------------------------------------------------------------- 1 | ../nodes -------------------------------------------------------------------------------- /ansible/roles/nuage-ca/files/serial.txt: -------------------------------------------------------------------------------- 1 | 00 2 | -------------------------------------------------------------------------------- /ansible/.gitignore: -------------------------------------------------------------------------------- 1 | myinventory 2 | *.swp 3 | *~ 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/spf13/pflag/go.sum: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ansible/OWNERS: -------------------------------------------------------------------------------- 1 | assignees: 2 | - eparis 3 | - ingvagabund 4 | 5 | -------------------------------------------------------------------------------- /ansible/playbooks/deploy-cluster.retry: -------------------------------------------------------------------------------- 1 | node1.nuageopenshift.com 2 | -------------------------------------------------------------------------------- /ansible/vagrant/.gitignore: -------------------------------------------------------------------------------- 1 | /.vagrant/ 2 | openstack_config.yml 3 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/jmcvetta/napping/VERSION: -------------------------------------------------------------------------------- 1 | v3.2.0 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/grpc/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/spf13/pflag/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | 3 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/uuid/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/google/uuid 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/tools/update-license/.gitignore: -------------------------------------------------------------------------------- 1 | update-license 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/xerrors/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /ansible/roles/contiv/files/netmaster.env: -------------------------------------------------------------------------------- 1 | NETMASTER_ARGS="--cluster-mode=kubernetes" 2 | -------------------------------------------------------------------------------- /ansible/roles/etcd/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - { role: common } 4 | -------------------------------------------------------------------------------- /ansible/roles/flannel/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - { role: common } 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/pkg/version/.gitattributes: -------------------------------------------------------------------------------- 1 | base.go export-subst 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/kardianos/osext/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/kardianos/osext 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /ansible/roles/etcd/files/10-conf-file.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | EnvironmentFile=-/etc/etcd/etcd.conf 3 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/xerrors/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/xerrors 2 | 3 | go 1.11 4 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/route-gateway0.j2: -------------------------------------------------------------------------------- 1 | {{ opencontrail_public_subnet }} dev gateway0 -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/route-gateway1.j2: -------------------------------------------------------------------------------- 1 | {{ kube_service_addresses }} dev gateway1 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/gorilla/mux/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/gorilla/mux 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/spf13/pflag/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/pflag 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/multierr/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | cover.html 3 | cover.out 4 | /bin 5 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/files/vrouter.conf: -------------------------------------------------------------------------------- 1 | options vrouter vr_flow_entries=65536 vr_bridge_entries=1024 -------------------------------------------------------------------------------- /nuagekubemon/strongswan-docker/fetch-strongswan: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -x 3 | cp ${strongswan_rpm_path} . 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/gofuzz/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/google/gofuzz 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/onsi/gomega/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.test 3 | . 4 | .idea 5 | gomega.iml 6 | -------------------------------------------------------------------------------- /ansible/roles/contiv/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - { role: etcd } 4 | - { role: kubernetes } 5 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/etcd-restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: restart etcd 3 | service: name=etcd state=restarted 4 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/etcd2-restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: restart etcd2 3 | service: name=etcd2 state=restarted 4 | -------------------------------------------------------------------------------- /ansible/roles/master/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - { role: common } 4 | - { role: kubernetes } 5 | -------------------------------------------------------------------------------- /ansible/roles/node/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - { role: common } 4 | - { role: kubernetes } 5 | -------------------------------------------------------------------------------- /nuagekubemon/scripts/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | go build -o nuagekubemon 3 | go build -o nuage-openshift-monitor 4 | 5 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/BurntSushi/toml/session.vim: -------------------------------------------------------------------------------- 1 | au BufWritePost *.go silent!make tags > /dev/null 2>&1 2 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/hashicorp/golang-lru/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/golang-lru 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /ansible/roles/common/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: reload systemd 3 | command: systemctl --system daemon-reload 4 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - { role: common } 4 | - { role: kubernetes } 5 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/ifcfg-gateway.j2: -------------------------------------------------------------------------------- 1 | DEVICE={{ item }} 2 | TYPE=vhost 3 | MACADDR=00:00:5e:00:01:00 4 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | dependencies: 3 | - { role: common } 4 | - { role: kubernetes } 5 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/kubelet-restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Restart kubelet 3 | service: name=kubelet state=restarted 4 | -------------------------------------------------------------------------------- /ansible/roles/node/files/kubernetes-accounting.conf: -------------------------------------------------------------------------------- 1 | [Manager] 2 | DefaultCPUAccounting=yes 3 | DefaultMemoryAccounting=yes 4 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/proxy-restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Restart proxy 3 | service: name=kube-proxy state=restarted 4 | 5 | -------------------------------------------------------------------------------- /ansible/roles/nuage-master/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | nuage_mon_log_level: "{{ nuage_monitor_log_level | default('3') }}" 3 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/BurntSushi/toml/.gitignore: -------------------------------------------------------------------------------- 1 | TAGS 2 | tags 3 | .*.swp 4 | tomlcheck/tomlcheck 5 | toml.test 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/nuagenetworks/go-bambou/bambou/bambou.goconvey: -------------------------------------------------------------------------------- 1 | // always run the test with -race 2 | -race 3 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/klog/go.mod: -------------------------------------------------------------------------------- 1 | module k8s.io/klog 2 | 3 | go 1.12 4 | 5 | require github.com/go-logr/logr v0.1.0 6 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/kubelet-restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: restart kubelet 3 | service: name=kubelet state=restarted 4 | 5 | -------------------------------------------------------------------------------- /ansible/roles/nuage-ca/files/openssl.cnf: -------------------------------------------------------------------------------- 1 | [ clientauth ] 2 | basicConstraints=CA:FALSE 3 | extendedKeyUsage=critical,clientAuth 4 | -------------------------------------------------------------------------------- /ansible/roles/contiv/files/contiv_cni.conf: -------------------------------------------------------------------------------- 1 | { 2 | "cniVersion": "0.1.0", 3 | "name": "contiv-poc", 4 | "type": "contivk8s" 5 | } 6 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/files/common/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: kube-system 5 | -------------------------------------------------------------------------------- /ansible/roles/nuage-master/files/nuage-serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: nuage 5 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail-provision/files/namespace.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: opencontrail 5 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/apiserver-restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Restart apiserver 3 | service: name=kube-apiserver state=restarted 4 | 5 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/scheduler-restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Restart scheduler 3 | service: name=kube-scheduler state=restarted 4 | 5 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/ifcfg-eth.j2: -------------------------------------------------------------------------------- 1 | DEVICE={{ opencontrail_interface }} 2 | BOOTPROTO=none 3 | ONBOOT=yes 4 | IPADDR=0.0.0.0 5 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/konsorten/go-windows-terminal-sequences/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/konsorten/go-windows-terminal-sequences 2 | -------------------------------------------------------------------------------- /ansible/scripts/ansible.cfg.new: -------------------------------------------------------------------------------- 1 | [defaults] 2 | # Set the log_path 3 | log_path = ansible.log 4 | 5 | [ssh_connection] 6 | pipelining = True 7 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/util/retry/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - caesarxuchao 5 | -------------------------------------------------------------------------------- /ansible/roles/docker/files/10-env-file.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | EnvironmentFile=/etc/sysconfig/docker-network 3 | EnvironmentFile=/etc/sysconfig/docker 4 | -------------------------------------------------------------------------------- /ansible/roles/docker/templates/docker.list.j2: -------------------------------------------------------------------------------- 1 | deb https://apt.dockerproject.org/repo {{ ansible_distribution | lower }}-{{ ansible_distribution_release }} main -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - include: etcd-start.yml 3 | when: not is_coreos 4 | 5 | - include: etcd2-start.yml 6 | when: is_coreos 7 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/node-route-redhat.j2: -------------------------------------------------------------------------------- 1 | {{ kube_service_addresses }} via {{ hostvars[groups['gateways'][0]]['ipaddr'] | ipaddr('address') }} -------------------------------------------------------------------------------- /nuagekubemon/vendor/gopkg.in/yaml.v2/go.mod: -------------------------------------------------------------------------------- 1 | module "gopkg.in/yaml.v2" 2 | 3 | require ( 4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 5 | ) 6 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - include: etcd-restart.yml 3 | when: not is_coreos 4 | 5 | - include: etcd2-restart.yml 6 | when: is_coreos 7 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/lint/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/lint 2 | 3 | go 1.11 4 | 5 | require golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7 6 | -------------------------------------------------------------------------------- /ansible/playbooks/deploy-addons.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: masters 3 | become: yes 4 | roles: 5 | - kubernetes-addons 6 | tags: 7 | - addons 8 | - dns 9 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/ssa/write.go: -------------------------------------------------------------------------------- 1 | package ssa 2 | 3 | func NewJump(parent *BasicBlock) *Jump { 4 | return &Jump{anInstruction{parent}} 5 | } 6 | -------------------------------------------------------------------------------- /ansible/playbooks/deploy-etcd.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Deploy etcd 3 | hosts: etcd 4 | sudo: yes 5 | roles: 6 | - etcd 7 | tags: 8 | - etcd 9 | 10 | -------------------------------------------------------------------------------- /ansible/playbooks/deploy-node.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Deploy node 3 | hosts: nodes 4 | become: yes 5 | roles: 6 | - node 7 | tags: 8 | - nodes 9 | 10 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/controller-manager-restart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Restart controller-manager 3 | service: name=kube-controller-manager state=restarted 4 | 5 | -------------------------------------------------------------------------------- /ansible/scripts/ansible.cfg: -------------------------------------------------------------------------------- 1 | [defaults] 2 | roles_path = ../roles 3 | 4 | # Set the log_path 5 | log_path = ./ansible.log 6 | 7 | [ssh_connection] 8 | pipelining = True 9 | -------------------------------------------------------------------------------- /ansible/playbooks/deploy-preansible.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | gather_facts: false 4 | become: yes 5 | roles: 6 | - pre-ansible 7 | tags: 8 | - pre-ansible 9 | -------------------------------------------------------------------------------- /nuagekubemon/net-config.yaml.template: -------------------------------------------------------------------------------- 1 | networkConfig: 2 | clusterNetworks: 3 | - cidr: 70.70.0.0/16 4 | hostSubnetLength: 8 5 | serviceNetworkCIDR: 10.96.0.0/12 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/xerrors/README: -------------------------------------------------------------------------------- 1 | This repository holds the transition packages for the new Go 1.13 error values. 2 | See golang.org/design/29934-error-values. 3 | -------------------------------------------------------------------------------- /ansible/playbooks/deploy-master.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Deploy master 3 | hosts: masters 4 | become: yes 5 | roles: 6 | - master 7 | tags: 8 | - masters 9 | 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/BurntSushi/toml/COMPATIBLE: -------------------------------------------------------------------------------- 1 | Compatible with TOML version 2 | [v0.4.0](https://github.com/toml-lang/toml/blob/v0.4.0/versions/en/toml-v0.4.0.md) 3 | 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/ssa/identical_17.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package ssa 4 | 5 | import "go/types" 6 | 7 | var structTypesIdentical = types.Identical 8 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/sigs.k8s.io/yaml/go.mod: -------------------------------------------------------------------------------- 1 | module sigs.k8s.io/yaml 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/davecgh/go-spew v1.1.1 7 | gopkg.in/yaml.v2 v2.2.8 8 | ) 9 | -------------------------------------------------------------------------------- /ansible/playbooks/deploy-docker.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # Install docker 3 | - hosts: all 4 | become: yes 5 | roles: 6 | - common 7 | - docker 8 | tags: 9 | - docker 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/googleapis/gnostic/compiler/README.md: -------------------------------------------------------------------------------- 1 | # Compiler support code 2 | 3 | This directory contains compiler support code used by Gnostic and Gnostic extensions. -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.etcd.io/etcd/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2014 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/ssa/identical.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package ssa 4 | 5 | import "go/types" 6 | 7 | var structTypesIdentical = types.IdenticalIgnoreTags 8 | -------------------------------------------------------------------------------- /ansible/roles/etcd/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: reload systemd 3 | command: systemctl --system daemon-reload 4 | 5 | - name: Save iptables rules 6 | command: service iptables save 7 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/tools/metrics/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - wojtek-t 5 | - eparis 6 | - krousey 7 | - jayunit100 8 | -------------------------------------------------------------------------------- /ansible/inventory/localhost.ini: -------------------------------------------------------------------------------- 1 | [masters] 2 | localhost ansible_connection=local 3 | 4 | [nodes] 5 | localhost ansible_connection=local 6 | 7 | [etcd] 8 | localhost ansible_connection=local 9 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/coreos/etcd/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2014 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/coreos/pkg/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2014 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/util/keyutil/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - sig-auth-certificates-approvers 3 | reviewers: 4 | - sig-auth-certificates-reviewers 5 | labels: 6 | - sig/auth 7 | 8 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/etcd-stop.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Disable etcd 3 | service: name=etcd enabled=no 4 | 5 | - name: Stop etcd 6 | service: name=etcd state=stopped 7 | register: etcd_stopped 8 | -------------------------------------------------------------------------------- /ansible/roles/flannel/templates/flannel-conf.json.j2: -------------------------------------------------------------------------------- 1 | { "Network": "{{ flannel_subnet }}/{{ flannel_prefix }}", "SubnetLen": {{ flannel_host_prefix }}, "Backend": { "Type": "{{ flannel_backend }}" } } 2 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/kubectl-configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Write the kubecfg (auth) file for kubectl 3 | template: src=kubectl.kubeconfig.j2 dest={{ kube_config_dir }}/kubectl.kubeconfig 4 | 5 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/coreos/go-systemd/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2018 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "math" 4 | 5 | func Odd(n int) bool { 6 | return math.Mod(float64(n), 2.0) == 1.0 7 | } 8 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/grpc/GOVERNANCE.md: -------------------------------------------------------------------------------- 1 | This repository is governed by the gRPC organization's [governance rules](https://github.com/grpc/grpc-community/blob/master/governance.md). 2 | -------------------------------------------------------------------------------- /ansible/roles/lb/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: restart haproxy 3 | systemd: 4 | name: haproxy 5 | state: restarted 6 | 7 | - name: save iptables rules 8 | command: service iptables save 9 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/ifcfg-vhost0.j2: -------------------------------------------------------------------------------- 1 | DEVICE=vhost0 2 | BOOTPROTO=none 3 | DEVICETYPE=vhost 4 | IPADDR={{ hostvars[inventory_hostname]['ipaddr'] }} 5 | PHYSDEV={{ opencontrail_interface }} 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go: -------------------------------------------------------------------------------- 1 | package node 2 | 3 | type Node struct { 4 | ID int 5 | Value interface{} 6 | } 7 | 8 | type NodeOrderedSet []Node 9 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/onsi/gomega/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | [ -z "`gofmt -s -w -l -e .`" ] 3 | go vet 4 | ginkgo -p -r --randomizeAllSpecs --failOnPending --randomizeSuites --race 5 | 6 | .PHONY: test 7 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/atomic/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | .DS_Store 3 | /vendor 4 | cover.html 5 | cover.out 6 | lint.log 7 | 8 | # Binaries 9 | *.test 10 | 11 | # Profiling output 12 | *.prof 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Community Code of Conduct 2 | 3 | gRPC follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/klog/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/klog/go.sum: -------------------------------------------------------------------------------- 1 | github.com/go-logr/logr v0.1.0 h1:M1Tv3VzNlEHg6uyACnRdtrploV2P7wZqH8BoQMtz0cg= 2 | github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= 3 | -------------------------------------------------------------------------------- /ansible/roles/node/templates/proxy.j2: -------------------------------------------------------------------------------- 1 | ### 2 | # kubernetes proxy config 3 | # default config should be adequate 4 | 5 | # Add your own! 6 | KUBE_PROXY_ARGS="--kubeconfig={{ kube_config_dir }}/proxy.kubeconfig" 7 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/jmcvetta/napping/circle.yml: -------------------------------------------------------------------------------- 1 | test: 2 | override: 3 | - go test -race -coverprofile=coverage.txt -covermode=atomic 4 | post: 5 | - bash <(curl -s https://codecov.io/bash) 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/ssa/staticcheck.conf: -------------------------------------------------------------------------------- 1 | # ssa/... is mostly imported from upstream and we don't want to 2 | # deviate from it too much, hence disabling SA1019 3 | checks = ["inherit", "-SA1019"] 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/sigs.k8s.io/yaml/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/nodes-redhat.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Static routes 3 | template: src=node-route-redhat.j2 dest=/etc/sysconfig/network-scripts/route-vhost0 4 | notify: 5 | - Bounce vhost0 interface 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/kardianos/osext/osext_go18.go: -------------------------------------------------------------------------------- 1 | //+build go1.8,!openbsd 2 | 3 | package osext 4 | 5 | import "os" 6 | 7 | func executable() (string, error) { 8 | return os.Executable() 9 | } 10 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/etcd2-stop.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: CoreOS | Disable etcd2 3 | service: name=etcd2 enabled=no 4 | 5 | - name: CoreOS | Stop etcd2 6 | service: name=etcd2 state=stopped 7 | register: etcd2_stopped 8 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/version/buildinfo111.go: -------------------------------------------------------------------------------- 1 | // +build !go1.12 2 | 3 | package version 4 | 5 | func printBuildInfo() {} 6 | func buildInfoVersion() (string, bool) { return "", false } 7 | -------------------------------------------------------------------------------- /ansible/roles/docker/tasks/generic-install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Generic | Install Docker 3 | action: "{{ ansible_pkg_mgr }}" 4 | args: 5 | name: "{{ docker_package_name }}" 6 | state: latest 7 | when: not is_atomic 8 | -------------------------------------------------------------------------------- /nuagekubemon/testfiles/nuagekubemon-config.yaml: -------------------------------------------------------------------------------- 1 | kubeConfig: "admin.kubeconfig" 2 | masterConfig: "master-config.yaml" 3 | vsdApiUrl: "https://xmpp.example.com:8443" 4 | vspVersion: "v3_2" 5 | licenseFile: "base_vsp_license.txt" 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/oauth2/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/time/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/time/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/tools/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/tools/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/etcd-start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Enable etcd 3 | service: name=etcd enabled=yes 4 | when: etcd_enable == true 5 | 6 | - name: Start etcd 7 | service: name=etcd state=started 8 | register: etcd_started 9 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/scheduler.j2: -------------------------------------------------------------------------------- 1 | ### 2 | # kubernetes scheduler config 3 | 4 | # default config should be adequate 5 | 6 | # Add your own! 7 | KUBE_SCHEDULER_ARGS="--kubeconfig={{ kube_config_dir }}/scheduler.kubeconfig" 8 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/interface.cfg.j2: -------------------------------------------------------------------------------- 1 | auto {{ opencontrail_interface }} 2 | iface {{ opencontrail_interface }} inet static 3 | address 0.0.0.0 4 | up ip link set $IFACE up 5 | down ip link set $IFACE down 6 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/oauth2/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/lint/lintutil/stats.go: -------------------------------------------------------------------------------- 1 | // +build !aix,!android,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris 2 | 3 | package lintutil 4 | 5 | import "os" 6 | 7 | var infoSignals = []os.Signal{} 8 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/transport/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - smarterclayton 5 | - wojtek-t 6 | - deads2k 7 | - liggitt 8 | - krousey 9 | - caesarxuchao 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/multierr/glide.yaml: -------------------------------------------------------------------------------- 1 | package: go.uber.org/multierr 2 | import: 3 | - package: go.uber.org/atomic 4 | version: ^1 5 | testImport: 6 | - package: github.com/stretchr/testify 7 | subpackages: 8 | - assert 9 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/etcd-configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Write etcd config file 3 | template: src=etcd.conf.j2 dest=/etc/etcd/etcd.conf 4 | 5 | - name: Setting the etcd_modified fact to true 6 | set_fact: 7 | etcd_modified: true 8 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/go_below_17.go: -------------------------------------------------------------------------------- 1 | //+build !go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/printf/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package printf 4 | 5 | func Fuzz(data []byte) int { 6 | _, err := Parse(string(data)) 7 | if err == nil { 8 | return 1 9 | } 10 | return 0 11 | } 12 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/pkgMgrInstallers/generic-install.yml: -------------------------------------------------------------------------------- 1 | - name: Generic | Install kubernetes node 2 | action: "{{ ansible_pkg_mgr }}" 3 | args: 4 | name: kubernetes-node 5 | state: latest 6 | notify: 7 | - restart daemons 8 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/kube-network.conf.j2: -------------------------------------------------------------------------------- 1 | [DEFAULT] 2 | service-cluster-ip-range = {{ kube_service_addresses }} 3 | 4 | [opencontrail] 5 | public-ip-range = {{ opencontrail_public_subnet }} 6 | cluster-service = kube-system/default 7 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/tools/internal/packagesinternal/packages.go: -------------------------------------------------------------------------------- 1 | // Package packagesinternal exposes internal-only fields from go/packages. 2 | package packagesinternal 3 | 4 | var GetForTest = func(p interface{}) string { return "" } 5 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/lint/lintutil/stats_posix.go: -------------------------------------------------------------------------------- 1 | // +build aix android linux solaris 2 | 3 | package lintutil 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | var infoSignals = []os.Signal{syscall.SIGUSR1} 11 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/proxy-start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Enable proxy 3 | service: name=kube-proxy enabled=yes 4 | when: services_enabled == true 5 | 6 | - name: Start proxy 7 | service: name=kube-proxy state=started 8 | register: proxy_started 9 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/etcd2-start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: CoreOS | Enable etcd2 3 | service: name=etcd2 enabled=yes 4 | when: etcd_enable == true 5 | 6 | - name: CoreOS | Start etcd2 7 | service: name=etcd2 state=started 8 | register: etcd_started 9 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/kubelet-start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Enable kubelet 3 | service: name=kubelet enabled=yes 4 | when: services_enabled == true 5 | 6 | - name: Start kubelet 7 | service: name=kubelet state=started 8 | register: kubelet_started 9 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/kubelet-start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Enable kubelet 3 | service: name=kubelet enabled=yes 4 | when: services_enabled == true 5 | 6 | - name: Start kubelet 7 | service: name=kubelet state=started 8 | register: kubelet_started 9 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/masters-services.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install templates 3 | copy: src="{{item}}" dest="{{ kube_manifest_dir }}" 4 | with_items: 5 | - cassandra.manifest 6 | - rabbitmq.manifest 7 | - zookeeper.manifest 8 | 9 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/lint/lintutil/stats_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | 3 | package lintutil 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | var infoSignals = []os.Signal{syscall.SIGINFO} 11 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/util/cert/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - sig-auth-certificates-approvers 5 | reviewers: 6 | - sig-auth-certificates-reviewers 7 | labels: 8 | - sig/auth 9 | 10 | -------------------------------------------------------------------------------- /ansible/roles/common/tasks/fedora-install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Generic | Install Firewalld Python2 Package 3 | action: "{{ ansible_pkg_mgr }}" 4 | args: 5 | name: python-firewall 6 | state: latest 7 | when: ansible_distribution_major_version|int >= 22 8 | -------------------------------------------------------------------------------- /kubernetes-ha-deployment/node/worker.env: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | APISERVER_LB="ovs-9.k8s.test.com" # no port or protocol 4 | TOKEN="3a72c3.99b1147b09880d84" 5 | 6 | SERVICE_SUBNET="192.168.0.0/16" # CIDR notation 7 | POD_SUBNET="70.70.0.0/16" # CIDR notation 8 | 9 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/go_above_17.go: -------------------------------------------------------------------------------- 1 | //+build go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | //go:linkname resolveTypeOff reflect.resolveTypeOff 8 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 9 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/tools/auth/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - sig-auth-authenticators-approvers 5 | reviewers: 6 | - sig-auth-authenticators-reviewers 7 | labels: 8 | - sig/auth 9 | 10 | -------------------------------------------------------------------------------- /nuagekubemon/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.access.redhat.com/ubi8/ubi:latest 2 | 3 | ADD nuagekubemon /usr/bin/nuagekubemon 4 | ADD nuage-openshift-monitor /usr/bin/nuage-openshift-monitor 5 | ADD configure-master.sh /configure-master.sh 6 | 7 | CMD ["/configure-master.sh"] 8 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/apiserver-start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Enable apiserver 3 | service: name=kube-apiserver enabled=yes 4 | when: services_enabled == true 5 | 6 | - name: Start apiserver 7 | service: name=kube-apiserver state=started 8 | register: apiserver_started 9 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/kubelet-configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Write the config files for kubelet 3 | template: src=kubelet.j2 dest={{ kube_config_dir }}/kubelet 4 | 5 | - name: Setting the kubelet_modified fact to true 6 | set_fact: 7 | kubelet_modified: true 8 | 9 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/scheduler-start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Enable scheduler 3 | service: name=kube-scheduler enabled=yes 4 | when: services_enabled == true 5 | 6 | - name: Start scheduler 7 | service: name=kube-scheduler state=started 8 | register: scheduler_started 9 | -------------------------------------------------------------------------------- /ansible/roles/node/templates/kube-proxy-default.j2: -------------------------------------------------------------------------------- 1 | . {{ kube_config_dir }}/config 2 | . {{ kube_config_dir }}/proxy 3 | 4 | KUBE_PROXY_OPTS="$KUBE_LOGTOSTDERR \ 5 | $KUBE_LOG_LEVEL \ 6 | $KUBE_MASTER \ 7 | $KUBE_PROXY_ARGS" 8 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/pkgMgrInstallers/fedora-install.yml: -------------------------------------------------------------------------------- 1 | - name: Fedora | Install kubernetes node 2 | action: "{{ ansible_pkg_mgr }}" 3 | args: 4 | name: kubernetes-node 5 | state: latest 6 | enablerepo: "updates-testing" 7 | notify: 8 | - restart daemons 9 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/ubuntu-post.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Write the delay-node-services target 3 | copy: src=delay-node-services.target dest=/etc/systemd/system/ mode=0644 4 | 5 | - name: Enable delay-node-services 6 | service: name=delay-node-services.target enabled=yes 7 | 8 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /ansible/roles/contiv/templates/contiv.cfg.j2: -------------------------------------------------------------------------------- 1 | { 2 | "K8S_API_SERVER": "https://{{ groups['masters'][0] }}:{{ kube_master_api_port }}", 3 | "K8S_CA": "{{ kube_cert_dir }}/ca.crt", 4 | "K8S_KEY": "{{ kube_cert_dir }}/kubecfg.key", 5 | "K8S_CERT": "{{ kube_cert_dir }}/kubecfg.crt" 6 | } 7 | -------------------------------------------------------------------------------- /ansible/roles/contiv/templates/netmaster.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Netmaster 3 | After=auditd.service systemd-user-sessions.service etcd.service 4 | 5 | [Service] 6 | EnvironmentFile=/etc/default/netmaster 7 | ExecStart={{ bin_dir }}/netmaster $NETMASTER_ARGS 8 | KillMode=control-group 9 | -------------------------------------------------------------------------------- /ansible/roles/contiv/templates/netplugin.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Netplugin 3 | After=auditd.service systemd-user-sessions.service etcd.service 4 | 5 | [Service] 6 | EnvironmentFile=/etc/default/netplugin 7 | ExecStart={{ bin_dir }}/netplugin $NETPLUGIN_ARGS 8 | KillMode=control-group 9 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/ubuntu-post.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Write the delay-master-services target 3 | copy: src=delay-master-services.target dest=/etc/systemd/system/ mode=0644 4 | 5 | - name: Enable delay-master-services 6 | service: name=delay-master-services.target enabled=yes 7 | 8 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/googleapis/gnostic/extensions/README.md: -------------------------------------------------------------------------------- 1 | # Extensions 2 | 3 | This directory contains support code for building Gnostic extensions and associated examples. 4 | 5 | Extensions are used to compile vendor or specification extensions into protocol buffer structures. 6 | -------------------------------------------------------------------------------- /ansible/roles/lb/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | galaxy_info: 3 | author: Siva Teja 4 | description: haproxy loadbalancer 5 | company: Nuage Networks 6 | license: Apache License, Version 2.0 7 | min_ansible_version: 2.2 8 | platforms: 9 | - name: EL 10 | versions: 11 | - 7 12 | -------------------------------------------------------------------------------- /ansible/roles/node/templates/kube-proxy-dropin.j2: -------------------------------------------------------------------------------- 1 | [Service] 2 | # Note: ExecStart= is required to clear the ExecStart in the unit file 3 | ExecStart= 4 | ExecStart={{ bin_dir }}/kube-proxy \ 5 | $KUBE_LOGTOSTDERR \ 6 | $KUBE_LOG_LEVEL \ 7 | $KUBE_MASTER \ 8 | $KUBE_PROXY_ARGS 9 | -------------------------------------------------------------------------------- /ansible/roles/docker/templates/dockerrepo.repo.j2: -------------------------------------------------------------------------------- 1 | [dockerrepo] 2 | name=Docker Repository 3 | baseurl={{ docker_repository_baseurl }} 4 | enabled=0 5 | {% if docker_repository_gpgkey == "" %} 6 | gpgcheck=0 7 | {% else %} 8 | gpgcheck=1 9 | gpgkey={{ docker_repository_gpgkey }} 10 | {% endif %} 11 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/kube-scheduler-default.j2: -------------------------------------------------------------------------------- 1 | . {{ kube_config_dir }}/config 2 | . {{ kube_config_dir }}/scheduler 3 | 4 | KUBE_SCHEDULER_OPTS="$KUBE_LOGTOSTDERR \ 5 | $KUBE_LOG_LEVEL \ 6 | $KUBE_MASTER \ 7 | $KUBE_SCHEDULER_ARGS" 8 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/contrail-control.conf.j2: -------------------------------------------------------------------------------- 1 | [DEFAULT] 2 | hostip={{ hostvars[inventory_hostname]['ansible_' + opencontrail_interface]['ipv4']['address'] }} 3 | hostname={{ ansible_hostname }} 4 | 5 | [IFMAP] 6 | server_url=https://localhost:8443 7 | user=control-node 8 | password=control-node -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/gofuzz/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.3 6 | - 1.2 7 | - tip 8 | 9 | install: 10 | - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi 11 | 12 | script: 13 | - go test -cover 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/grpc/install_gae.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TMP=$(mktemp -d /tmp/sdk.XXX) \ 4 | && curl -o $TMP.zip "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.68.zip" \ 5 | && unzip -q $TMP.zip -d $TMP \ 6 | && export PATH="$PATH:$TMP/go_appengine" 7 | -------------------------------------------------------------------------------- /ansible/roles/contiv/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - name: Ensure bin_dir exists 2 | file: path={{ bin_dir }} recurse=yes state=directory 3 | 4 | - include: download_bins.yml 5 | 6 | - include: netmaster.yml 7 | when: contiv_role == "netmaster" 8 | 9 | - include: netplugin.yml 10 | when: contiv_role == "netplugin" 11 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes/tasks/configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Create kubernetes config directory 3 | file: path={{ kube_config_dir }} state=directory 4 | 5 | - name: Write the global config file 6 | template: src=config.j2 dest={{ kube_config_dir }}/config 7 | notify: 8 | - restart daemons 9 | 10 | -------------------------------------------------------------------------------- /ansible/roles/nuage-ca/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | galaxy_info: 3 | author: Vishal Patil 4 | description: 5 | company: Nuage Networks 6 | license: Apache License, Version 2.0 7 | min_ansible_version: 1.8 8 | categories: 9 | - cloud 10 | - system 11 | dependencies: 12 | - { role: nuage-common } 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/zap/go.mod: -------------------------------------------------------------------------------- 1 | module go.uber.org/zap 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/pkg/errors v0.8.1 7 | github.com/stretchr/testify v1.4.0 8 | go.uber.org/atomic v1.5.0 9 | go.uber.org/multierr v1.3.0 10 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de 11 | ) 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/oauth2/internal/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package internal contains support packages for oauth2 package. 6 | package internal 7 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences_dummy.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin 2 | 3 | package sequences 4 | 5 | import ( 6 | "fmt" 7 | ) 8 | 9 | func EnableVirtualTerminalProcessing(stream uintptr, enable bool) error { 10 | return fmt.Errorf("windows only package") 11 | } 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/pkg/apis/clientauthentication/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | # approval on api packages bubbles to api-approvers 4 | reviewers: 5 | - sig-auth-authenticators-approvers 6 | - sig-auth-authenticators-reviewers 7 | labels: 8 | - sig/auth 9 | 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/oauth2/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/oauth2 2 | 3 | go 1.11 4 | 5 | require ( 6 | cloud.google.com/go v0.34.0 7 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e 8 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 // indirect 9 | google.golang.org/appengine v1.4.0 10 | ) 11 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/controller-manager-start.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Enable controller-manager 3 | service: name=kube-controller-manager enabled=yes 4 | when: services_enabled == true 5 | 6 | - name: Start controller-manager 7 | service: name=kube-controller-manager state=started 8 | register: controller_manager_started 9 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/kube-scheduler-dropin.j2: -------------------------------------------------------------------------------- 1 | [Service] 2 | User=root 3 | # Note: ExecStart= is required to clear the ExecStart in the unit file 4 | ExecStart= 5 | ExecStart={{ bin_dir }}/kube-scheduler \ 6 | $KUBE_LOGTOSTDERR \ 7 | $KUBE_LOG_LEVEL \ 8 | $KUBE_MASTER \ 9 | $KUBE_SCHEDULER_ARGS 10 | -------------------------------------------------------------------------------- /ansible/roles/nuage-node/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - name: restart daemons 4 | command: /bin/true 5 | notify: 6 | - restart kubelet 7 | 8 | - name: restart kubelet 9 | service: name=kubelet state=restarted 10 | ignore_errors: yes 11 | 12 | - name: save iptables rules 13 | command: service iptables save 14 | -------------------------------------------------------------------------------- /ansible/roles/pre-ansible/tasks/fedora-dnf.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install minimal packages 3 | raw: dnf install -y {{ item }} 4 | with_items: 5 | - python # everyone need python2 6 | - python-dnf # some versions of ansible (2.0) use dnf directly 7 | - yum # some versions of ansible use yum 8 | - libselinux-python 9 | -------------------------------------------------------------------------------- /nuagekubemon/strongswan-docker/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7 2 | 3 | ADD strongswan*.rpm /tmp/ 4 | 5 | RUN yum -y install /tmp/strongswan*.rpm && rm -f /tmp/strongswan*.rpm 6 | 7 | RUN sed -i "s/load = yes/load = no/g" /etc/strongswan/strongswan.d/charon/dhcp.conf 8 | 9 | CMD ["/usr/sbin/strongswan", "start", "--nofork"] 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.4.x" 5 | - "1.5.x" 6 | - "1.6.x" 7 | - "1.7.x" 8 | - "1.8.x" 9 | - "1.9.x" 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "tip" 15 | 16 | go_import_path: gopkg.in/yaml.v2 17 | -------------------------------------------------------------------------------- /ansible/roles/docker/tasks/custom-repo-install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install docker custom repository 3 | template: src=dockerrepo.repo.j2 dest=/etc/yum.repos.d/dockerrepo.repo 4 | 5 | - name: Install docker from custom repository 6 | action: "{{ ansible_pkg_mgr }} name={{ docker_package_name }} state=latest enablerepo=dockerrepo" 7 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/BurntSushi/toml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.1 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - tip 10 | install: 11 | - go install ./... 12 | - go get github.com/BurntSushi/toml-test 13 | script: 14 | - export PATH="$PATH:$HOME/gopath/bin" 15 | - make test 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/imdario/mergo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | install: 3 | - go get -t 4 | - go get golang.org/x/tools/cmd/cover 5 | - go get github.com/mattn/goveralls 6 | script: 7 | - go test -race -v ./... 8 | after_script: 9 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/tools/go/ast/astutil/util.go: -------------------------------------------------------------------------------- 1 | package astutil 2 | 3 | import "go/ast" 4 | 5 | // Unparen returns e with any enclosing parentheses stripped. 6 | func Unparen(e ast.Expr) ast.Expr { 7 | for { 8 | p, ok := e.(*ast.ParenExpr) 9 | if !ok { 10 | return e 11 | } 12 | e = p.X 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /ansible/roles/lb/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | haproxy_frontends: 3 | - name: main 4 | binds: 5 | - "*:{{ k8s_api_port | default(6443) }}" 6 | default_backend: default 7 | 8 | haproxy_backends: 9 | - name: default 10 | balance: roundrobin 11 | servers: 12 | - name: web01 13 | address: 127.0.0.1:9000 14 | opts: check 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/atomic/go.mod: -------------------------------------------------------------------------------- 1 | module go.uber.org/atomic 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/stretchr/testify v1.3.0 6 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de 7 | golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c // indirect 8 | ) 9 | 10 | go 1.13 11 | -------------------------------------------------------------------------------- /ansible/roles/node/files/delay-node-services.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Delay Kubernetes services until network is actually online 3 | Wants=network-online.target 4 | After=network-online.target 5 | Before=flanneld.service 6 | Before=kube-proxy.service 7 | 8 | [Install] 9 | WantedBy=flanneld.service 10 | WantedBy=kube-proxy.service 11 | -------------------------------------------------------------------------------- /ansible/roles/nuage-node/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | galaxy_info: 3 | author: Vishal Patil 4 | description: 5 | company: Nuage Networks 6 | license: Apache License, Version 2.0 7 | min_ansible_version: 1.8 8 | categories: 9 | - cloud 10 | - system 11 | dependencies: 12 | - { role: nuage-common } 13 | - { role: nuage-ca } 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | 3 | package logrus 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | const ioctlReadTermios = unix.TCGETS 8 | 9 | func isTerminal(fd int) bool { 10 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 11 | return err == nil 12 | } 13 | 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/text/language/go1_2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | var sortStable = sort.Stable 12 | -------------------------------------------------------------------------------- /ansible/roles/contiv/templates/aci-gw.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Contiv ACI gw 3 | After=auditd.service systemd-user-sessions.service time-sync.target docker.service 4 | 5 | [Service] 6 | ExecStart={{ bin_dir }}/aci_gw.sh start 7 | ExecStop={{ bin_dir }}/aci_gw.sh stop 8 | KillMode=control-group 9 | Restart=on-failure 10 | RestartSec=10 11 | -------------------------------------------------------------------------------- /ansible/roles/nuage-master/meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | galaxy_info: 3 | author: Vishal Patil 4 | description: 5 | company: Nuage Networks 6 | license: Apache License, Version 2.0 7 | min_ansible_version: 1.8 8 | categories: 9 | - cloud 10 | - system 11 | dependencies: 12 | - { role: nuage-common } 13 | - { role: nuage-ca } 14 | -------------------------------------------------------------------------------- /demo-scripts/pod-no-pg.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: nginx-2 5 | labels: 6 | app: nginx 7 | nuage.io/subnet: demo 8 | nuage.io/zone: demo 9 | nuage.io/user: admin 10 | spec: 11 | containers: 12 | - name: nginx-2 13 | image: rstarmer/nginx-curl 14 | ports: 15 | - containerPort: 80 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/gorilla/mux/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of gorilla/mux authors for copyright purposes. 2 | # 3 | # Please keep the list sorted. 4 | 5 | Google LLC (https://opensource.google.com/) 6 | Kamil Kisielk 7 | Matt Silverlock 8 | Rodrigo Moraes (https://github.com/moraes) 9 | -------------------------------------------------------------------------------- /ansible/roles/master/files/delay-master-services.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Delay Kubernetes services until network is actually online 3 | Wants=network-online.target 4 | After=network-online.target 5 | Before=flanneld.service 6 | Before=kube-apiserver.service 7 | 8 | [Install] 9 | WantedBy=flanneld.service 10 | WantedBy=kube-apiserver.service 11 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/onsi/gomega/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.12.x 5 | - 1.13.x 6 | - gotip 7 | 8 | env: 9 | - GO111MODULE=on 10 | 11 | install: 12 | - go get -v ./... 13 | - go build ./... 14 | - go get github.com/onsi/ginkgo 15 | - go install github.com/onsi/ginkgo/ginkgo 16 | 17 | script: make test 18 | -------------------------------------------------------------------------------- /ansible/roles/etcd/files/etcd.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Etcd Server 3 | After=network.target 4 | 5 | [Service] 6 | Type=simple 7 | WorkingDirectory=/var/lib/etcd/ 8 | EnvironmentFile=-/etc/etcd/etcd.conf 9 | User=etcd 10 | ExecStart=/usr/bin/etcd 11 | Restart=on-failure 12 | LimitNOFILE=65536 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/kube-controller-manager-dropin.j2: -------------------------------------------------------------------------------- 1 | [Service] 2 | User=root 3 | # Note: ExecStart= is required to clear the ExecStart in the unit file 4 | ExecStart= 5 | ExecStart={{ bin_dir }}/kube-controller-manager \ 6 | $KUBE_LOGTOSTDERR \ 7 | $KUBE_LOG_LEVEL \ 8 | $KUBE_MASTER \ 9 | $KUBE_CONTROLLER_MANAGER_ARGS 10 | -------------------------------------------------------------------------------- /demo-scripts/README.md: -------------------------------------------------------------------------------- 1 | # demo-scripts 2 | 3 | https://github.com/paxtonhare/demo-magic 4 | http://www.macs.hw.ac.uk/~hwloidl/Courses/LinuxIntro/x864.html 5 | 6 | ./demo.sh will create and expose nginx service and try to curl from the POD to the service IP followed by cleaning up of pods and services 7 | 8 | Pre-req: 9 | Needs a running K8s cluster 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/appengine/internal/identity_flex.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Google LLC. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appenginevm 6 | 7 | package internal 8 | 9 | func init() { 10 | appengineFlex = true 11 | } 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/apimachinery/pkg/api/resource/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - lavalamp 6 | - smarterclayton 7 | - wojtek-t 8 | - derekwaynecarr 9 | - mikedanese 10 | - saad-ali 11 | - janetkuo 12 | - tallclair 13 | - eparis 14 | - xiang90 15 | - mbohlool 16 | - david-mcmahon 17 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/kube-controller-manager-default.j2: -------------------------------------------------------------------------------- 1 | . {{ kube_config_dir }}/config 2 | . {{ kube_config_dir }}/controller-manager 3 | 4 | KUBE_CONTROLLER_MANAGER_OPTS="$KUBE_LOGTOSTDERR \ 5 | $KUBE_LOG_LEVEL \ 6 | $KUBE_MASTER \ 7 | $KUBE_CONTROLLER_MANAGER_ARGS" 8 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/files/ifdown-vhost: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . /etc/init.d/functions 4 | 5 | cd /etc/sysconfig/network-scripts 6 | . ./network-functions 7 | 8 | [ -f ../network ] && . ../network 9 | 10 | CONFIG=${1} 11 | 12 | need_config "${CONFIG}" 13 | 14 | source_config 15 | 16 | exec /etc/sysconfig/network-scripts/ifdown-post ${CONFIG} ${2} 17 | -------------------------------------------------------------------------------- /ansible/roles/flannel/tasks/upstart-service.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # Write upstart Flannel configuration. 3 | 4 | # On non-github-release service files must be provided by flannel package. 5 | - assert: 6 | that: 7 | - flannel_source_type == "github-release" 8 | 9 | - name: Create Upstart Script 10 | template: src=flanneld.upstart dest=/etc/init/flanneld.conf 11 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/lint/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.10.x 5 | - 1.11.x 6 | - master 7 | 8 | go_import_path: golang.org/x/lint 9 | 10 | install: 11 | - go get -t -v ./... 12 | 13 | script: 14 | - go test -v -race ./... 15 | 16 | matrix: 17 | allow_failures: 18 | - go: master 19 | fast_finish: true 20 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le riscv64 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/xerrors/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package internal 6 | 7 | // EnableTrace indicates whether stack information should be recorded in errors. 8 | var EnableTrace = true 9 | -------------------------------------------------------------------------------- /kubernetes-ha-deployment/cleanup_node.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | systemctl stop docker 4 | \rm -r /var/lib/etcd/* 5 | kubeadm reset 6 | yum remove -y kubernetes-cni kubeadm kubelet kubectl docker-engine 7 | ip link set docker0 down 8 | ip link set cni0 down 9 | ip link set flannel.1 down 10 | ip link delete flannel.1 11 | ip link delete cni0 12 | ip link delete docker0 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype) 14 | } 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | 3 | package logrus 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | const ioctlReadTermios = unix.TIOCGETA 8 | 9 | func isTerminal(fd int) bool { 10 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 11 | return err == nil 12 | } 13 | 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/oauth2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | 6 | install: 7 | - export GOPATH="$HOME/gopath" 8 | - mkdir -p "$GOPATH/src/golang.org/x" 9 | - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/golang.org/x/oauth2" 10 | - go get -v -t -d golang.org/x/oauth2/... 11 | 12 | script: 13 | - go test -v golang.org/x/oauth2/... 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/sigs.k8s.io/yaml/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # Eclipse files 5 | .classpath 6 | .project 7 | .settings/** 8 | 9 | # Emacs save files 10 | *~ 11 | 12 | # Vim-related files 13 | [._]*.s[a-w][a-z] 14 | [._]s[a-w][a-z] 15 | *.un~ 16 | Session.vim 17 | .netrwhist 18 | 19 | # Go test binaries 20 | *.test 21 | -------------------------------------------------------------------------------- /demo-scripts/pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: nginx 5 | labels: 6 | app: nginx 7 | nuage.io/subnet: demo 8 | nuage.io/zone: demo 9 | nuage.io/user: admin 10 | nuage.io/policy-group: demo 11 | spec: 12 | containers: 13 | - name: nginx 14 | image: rstarmer/nginx-curl 15 | ports: 16 | - containerPort: 80 17 | -------------------------------------------------------------------------------- /nuagekubemon/pkg/policyapi/policies/Makefile: -------------------------------------------------------------------------------- 1 | all: build 2 | 3 | test: build 4 | go test -v ./... 5 | 6 | build: dep fmt lint 7 | go build -v 8 | dep: 9 | go get ./... 10 | fmt: 11 | go fmt ./... 12 | 13 | lint: 14 | cd api; go install; cd .. 15 | cd ovsdb; go install; cd .. 16 | go install 17 | gometalinter --disable=dupl --disable=gocyclo --deadline 300s ./... 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype, cap) 14 | } 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/appengine/internal/main_common.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | // MainPath stores the file path of the main package. On App Engine Standard 4 | // using Go version 1.9 and below, this will be unset. On App Engine Flex and 5 | // App Engine Standard second-gen (Go 1.11 and above), this will be the 6 | // filepath to package main. 7 | var MainPath string 8 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/pkgMgrInstallers/centos-install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: CentOS | Install kubernetes node 3 | yum: 4 | pkg=kubernetes-node 5 | state=latest 6 | notify: 7 | - restart daemons 8 | environment: 9 | http_proxy: "{{ http_proxy|default('') }}" 10 | https_proxy: "{{ https_proxy|default('') }}" 11 | no_proxy: "{{ no_proxy|default('') }}" 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.12 6 | 7 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 8 | // and earlier (see https://golang.org/issue/23311). 9 | -------------------------------------------------------------------------------- /ansible/roles/docker/tasks/coreos.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: CoreOS | Create docker dropin directory 3 | file: path=/etc/systemd/system/docker.service.d state=directory mode=0755 4 | 5 | - name: CoreOS | Write docker dropin file 6 | copy: src=10-env-file.conf dest="/etc/systemd/system/docker.service.d/10-env-file.conf" 7 | register: docker_dropin 8 | notify: 9 | - reload systemd 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package terminal 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /ansible/roles/docker/tasks/install-rpms.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install docker distribution rpms 3 | yum: name={{ docker_rpm_url_base }}/{{ item }}-{{ docker_rpm_url_sufix }} 4 | with_items: 5 | - "{{ docker_rpms }}" 6 | environment: 7 | http_proxy: "{{ http_proxy|default('') }}" 8 | https_proxy: "{{ https_proxy|default('') }}" 9 | no_proxy: "{{ no_proxy|default('') }}" 10 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/install_rpms.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install kubernetes distribution rpms 3 | yum: name={{ kube_rpm_url_base }}/{{ item }}-{{ kube_rpm_url_sufix }} 4 | with_items: 5 | - "{{ kube_node_rpms }}" 6 | environment: 7 | http_proxy: "{{ http_proxy|default('') }}" 8 | https_proxy: "{{ https_proxy|default('') }}" 9 | no_proxy: "{{ no_proxy|default('') }}" 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/json-iterator/go/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/json-iterator/go 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/davecgh/go-spew v1.1.1 7 | github.com/google/gofuzz v1.0.0 8 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 9 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 10 | github.com/stretchr/testify v1.3.0 11 | ) 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/klog/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | reviewers: 3 | - jayunit100 4 | - hoegaarden 5 | - andyxning 6 | - neolit123 7 | - pohly 8 | - yagonobre 9 | - vincepri 10 | - detiber 11 | approvers: 12 | - dims 13 | - thockin 14 | - justinsb 15 | - tallclair 16 | - piosz 17 | - brancz 18 | - DirectXMan12 19 | - lavalamp 20 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/cluster-monitoring/heapster-service.yaml.j2: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: heapster 5 | namespace: kube-system 6 | labels: 7 | kubernetes.io/cluster-service: "true" 8 | kubernetes.io/name: "Heapster" 9 | spec: 10 | ports: 11 | - port: 80 12 | targetPort: 8082 13 | selector: 14 | k8s-app: heapster 15 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/kube-addons.upstart.j2: -------------------------------------------------------------------------------- 1 | description "Kubernetes Addon Object Manager" 2 | 3 | start on started kube-apiserver 4 | stop on runlevel [!2345] 5 | 6 | env TOKEN_DIR={{ kube_token_dir }} 7 | env KUBECTL_BIN={{ bin_dir }}/kubectl 8 | env KUBERNETES_MASTER_NAME={{ groups['masters'][0] }} 9 | env TRUSTY_MASTER=true 10 | 11 | exec {{ kube_script_dir }}/kube-addons.sh 12 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/files/contrail-vrouter-agent.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=OpenContrail VRouter agent 3 | 4 | [Service] 5 | ExecStart=/usr/bin/docker run --privileged=true --net=host -v /etc/contrail:/etc/contrail -v /var/log/contrail:/var/log/contrail opencontrail/vrouter-agent:2.20 /usr/bin/contrail-vrouter-agent 6 | Restart=on-failure 7 | 8 | [Install] 9 | WantedBy=multi-user.target 10 | -------------------------------------------------------------------------------- /nuagekubemon/pkg/policyapi/policies/default-policy.go: -------------------------------------------------------------------------------- 1 | package policies 2 | 3 | // DefaultPolicyElement policy element for type Default 4 | type DefaultPolicyElement struct { 5 | Name string 6 | From EndPoint `yaml:"from"` 7 | To EndPoint `yaml:"to"` 8 | Action ActionType 9 | NetworkParameters NetworkParameters `yaml:"network-parameters"` 10 | } 11 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/syscall_darwin_386.1_11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,386,!go1.12 6 | 7 | package unix 8 | 9 | //sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/kube-ui/dashboard-service.yaml.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: kubernetes-dashboard 5 | namespace: kube-system 6 | labels: 7 | k8s-app: kubernetes-dashboard 8 | kubernetes.io/cluster-service: "true" 9 | spec: 10 | selector: 11 | k8s-app: kubernetes-dashboard 12 | ports: 13 | - port: 80 14 | targetPort: 9090 15 | -------------------------------------------------------------------------------- /ansible/roles/node/templates/kubelet-dropin.j2: -------------------------------------------------------------------------------- 1 | [Service] 2 | # Note: ExecStart= is required to clear the ExecStart in the unit file 3 | ExecStart= 4 | ExecStart={{ bin_dir }}/kubelet \ 5 | $KUBE_LOGTOSTDERR \ 6 | $KUBE_LOG_LEVEL \ 7 | $KUBELET_API_SERVER \ 8 | $KUBELET_ADDRESS \ 9 | $KUBELET_PORT \ 10 | $KUBELET_HOSTNAME \ 11 | $KUBE_ALLOW_PRIV \ 12 | $KUBELET_ARGS 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/jmcvetta/napping/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.3 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - 1.7 8 | - 1.8 9 | - tip 10 | notificaitons: 11 | email: 12 | recipients: jason.mcvetta@gmail.com 13 | on_success: change 14 | on_failure: always 15 | before_script: 16 | - go get github.com/bmizerany/assert 17 | - go get github.com/jmcvetta/randutil 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.1_11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,amd64,!go1.12 6 | 7 | package unix 8 | 9 | //sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 10 | -------------------------------------------------------------------------------- /ansible/roles/node/templates/kubelet-default.j2: -------------------------------------------------------------------------------- 1 | . {{ kube_config_dir }}/config 2 | . {{ kube_config_dir }}/kubelet 3 | 4 | KUBELET_OPTS="$KUBE_LOGTOSTDERR \ 5 | $KUBE_LOG_LEVEL \ 6 | $KUBELET_API_SERVER \ 7 | $KUBELET_ADDRESS \ 8 | $KUBELET_PORT \ 9 | $KUBELET_HOSTNAME \ 10 | $KUBE_ALLOW_PRIV \ 11 | $KUBELET_ARGS" 12 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/files/contrail-vrouter-agent.upstart: -------------------------------------------------------------------------------- 1 | description "OpenContrail VRouter agent" 2 | 3 | start on started docker.io 4 | stop on runlevel [!2345] 5 | 6 | respawn 7 | 8 | script 9 | /usr/bin/docker run --privileged=true --net=host -v /etc/contrail:/etc/contrail -v /var/log/contrail:/var/log/contrail opencontrail/vrouter-agent:2.20 /usr/bin/contrail-vrouter-agent 10 | end script 11 | -------------------------------------------------------------------------------- /nuagekubemon/scripts/build-nuage-infra-docker-image.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | if [ -z ${version} ]; then 6 | echo "\"version\" environmental variable is not set"; 7 | exit 1 8 | fi 9 | 10 | sudo docker build -t nuage/infra:${version} -f nuage-infra/Dockerfile nuage-infra/ 11 | docker save nuage/infra:${version} > nuage-infra-docker-${version}.tar 12 | docker rmi nuage/infra:${version} 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | // +build go1.10 6 | 7 | package flags 8 | 9 | // AtLeastGo110 reports whether the Go toolchain is at least Go 1.10. 10 | const AtLeastGo110 = true 11 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/spf13/pflag/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | 15 | install: 16 | - go get golang.org/x/lint/golint 17 | - export PATH=$GOPATH/bin:$PATH 18 | - go install ./... 19 | 20 | script: 21 | - verify/all.sh -v 22 | - go test ./... 23 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/crypto/ssh/terminal/util_aix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix 6 | 7 | package terminal 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TCGETS 12 | const ioctlWriteTermios = unix.TCSETS 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,arm,!go1.12 6 | 7 | package unix 8 | 9 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 10 | return 0, ENOSYS 11 | } 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.1_11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,arm64,!go1.12 6 | 7 | package unix 8 | 9 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 10 | return 0, ENOSYS 11 | } 12 | -------------------------------------------------------------------------------- /demo-scripts/new-nginx-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: nginx-deployment 5 | labels: 6 | app: nginx 7 | spec: 8 | ports: 9 | # the port that this service should serve on 10 | - 11 | port: 80 12 | targetPort: 80 13 | protocol: "TCP" 14 | # label keys and values that must match in order to receive traffic for this service 15 | selector: 16 | app: nginx 17 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | // +build !go1.10 6 | 7 | package flags 8 | 9 | // AtLeastGo110 reports whether the Go toolchain is at least Go 1.10. 10 | const AtLeastGo110 = false 11 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/multierr/go.mod: -------------------------------------------------------------------------------- 1 | module go.uber.org/multierr 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/stretchr/testify v1.3.0 7 | go.uber.org/atomic v1.5.0 8 | go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee 9 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de 10 | golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5 // indirect 11 | honnef.co/go/tools v0.0.1-2019.2.3 12 | ) 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/zap/checklicense.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | ERROR_COUNT=0 4 | while read -r file 5 | do 6 | case "$(head -1 "${file}")" in 7 | *"Copyright (c) "*" Uber Technologies, Inc.") 8 | # everything's cool 9 | ;; 10 | *) 11 | echo "$file is missing license header." 12 | (( ERROR_COUNT++ )) 13 | ;; 14 | esac 15 | done < <(git ls-files "*\.go") 16 | 17 | exit $ERROR_COUNT 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/hashicorp/golang-lru/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/oauth2/internal/client_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import "google.golang.org/appengine/urlfetch" 10 | 11 | func init() { 12 | appengineClientHook = urlfetch.Client 13 | } 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/appengine/internal/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import ( 10 | "appengine_internal" 11 | ) 12 | 13 | func Main() { 14 | MainPath = "" 15 | appengine_internal.Main() 16 | } 17 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Create etcd config directory 3 | file: path={{ etcd_conf_dir }} state=directory 4 | 5 | - include: etcd-configure.yml 6 | when: not is_coreos 7 | 8 | - include: etcd2-configure.yml 9 | when: is_coreos 10 | 11 | - include: firewalld-configure.yml 12 | when: has_firewalld 13 | 14 | - include: iptables-configure.yml 15 | when: not has_firewalld and has_iptables 16 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/controller-manager.j2: -------------------------------------------------------------------------------- 1 | ### 2 | # The following values are used to configure the kubernetes controller-manager 3 | 4 | # defaults from config and apiserver should be adequate 5 | 6 | # Add your own! 7 | KUBE_CONTROLLER_MANAGER_ARGS="--kubeconfig={{ kube_config_dir }}/controller-manager.kubeconfig --service-account-private-key-file={{ kube_cert_dir }}/server.key --root-ca-file={{ kube_cert_dir }}/ca.crt" 8 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/BurntSushi/toml/Makefile: -------------------------------------------------------------------------------- 1 | install: 2 | go install ./... 3 | 4 | test: install 5 | go test -v 6 | toml-test toml-test-decoder 7 | toml-test -encoder toml-test-encoder 8 | 9 | fmt: 10 | gofmt -w *.go */*.go 11 | colcheck *.go */*.go 12 | 13 | tags: 14 | find ./ -name '*.go' -print0 | xargs -0 gotags > TAGS 15 | 16 | push: 17 | git push origin master 18 | git push github master 19 | 20 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list github.com/modern-go/reflect2-tests/... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/reflect2 $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/sirupsen/logrus/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/sirupsen/logrus 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/konsorten/go-windows-terminal-sequences v1.0.1 6 | github.com/pmezard/go-difflib v1.0.0 // indirect 7 | github.com/stretchr/objx v0.1.1 // indirect 8 | github.com/stretchr/testify v1.2.2 9 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894 10 | ) 11 | -------------------------------------------------------------------------------- /ansible/roles/contiv/templates/netplugin.j2: -------------------------------------------------------------------------------- 1 | {% if contiv_encap_mode == "vlan" %} 2 | NETPLUGIN_ARGS='-vlan-if {{ netplugin_interface }} -ctrl-ip {{ netplugin_ctrl_ip }} -fwd-mode {{netplugin_fwd_mode}} -plugin-mode kubernetes' 3 | {% endif %} 4 | {% if contiv_encap_mode == "vxlan" %} 5 | NETPLUGIN_ARGS='-vtep-ip {{ netplugin_vtep_ip }} -ctrl-ip {{ netplugin_ctrl_ip }} -fwd-mode {{netplugin_fwd_mode}} -plugin-mode kubernetes' 6 | {% endif %} 7 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install etcd 3 | include: install.yml 4 | tags: install 5 | 6 | - name: Configure etcd 7 | include: configure.yml 8 | tags: configure 9 | 10 | - name: Start etcd 11 | include: start.yml 12 | 13 | - name: Restart etcd 14 | include: restart.yml 15 | when: etcd_modified is not defined or (etcd_modified is defined and etcd_started.changed == false) 16 | tags: restart 17 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/klog/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: k8s.io/klog 3 | dist: xenial 4 | go: 5 | - 1.9.x 6 | - 1.10.x 7 | - 1.11.x 8 | - 1.12.x 9 | script: 10 | - go get -t -v ./... 11 | - diff -u <(echo -n) <(gofmt -d .) 12 | - diff -u <(echo -n) <(golint $(go list -e ./...)) 13 | - go tool vet . || go vet . 14 | - go test -v -race ./... 15 | install: 16 | - go get golang.org/x/lint/golint 17 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/sigs.k8s.io/yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | dist: xenial 3 | go: 4 | - 1.12.x 5 | - 1.13.x 6 | script: 7 | - diff -u <(echo -n) <(gofmt -d *.go) 8 | - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) 9 | - GO111MODULE=on go vet . 10 | - GO111MODULE=on go test -v -race ./... 11 | - git diff --exit-code 12 | install: 13 | - GO111MODULE=off go get golang.org/x/lint/golint 14 | -------------------------------------------------------------------------------- /nuagekubemon/strongswan-docker/Makefile: -------------------------------------------------------------------------------- 1 | all: fetch_strongswan docker_build 2 | 3 | fetch_strongswan: 4 | ./fetch-strongswan 5 | 6 | docker_build: 7 | docker build --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --build-arg no_proxy=${no_proxy} -t nuage/strongswan:${version} . 8 | docker save nuage/strongswan:${version} > nuage-strongswan-docker-${version}.tar 9 | docker rmi nuage/strongswan:${version} 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nuage-kubernetes 2 | 3 | Kubernetes Integration Related Artifacts 4 | - Nuage ansible repository 5 | - Kubernetes HA deployment guide 6 | - Nuage Install Documentation 7 | - Manual installation instructions 8 | - Demo scripts 9 | - nuagekubemon monitor source 10 | - nuage-k8s-plugin source 11 | - Sample jsons 12 | 13 | Please refer to the official Nuage K8s documentaion for the supported kubernetes and openshift versions. -------------------------------------------------------------------------------- /ansible/vagrant/openstack_config.yml.example: -------------------------------------------------------------------------------- 1 | os_username: eparis 2 | os_password: password 3 | os_tenant: "RH US Business Group" 4 | os_auth_url: "http://os1-public.osop.rhcloud.com:5000/v2.0" 5 | os_region_name: "OS1Public" 6 | os_ssh_key_name: "eparis" 7 | os_flavor: "m1.small" 8 | os_image: "Fedora 22 Cloud Base x86_64 (final)" 9 | os_security_groups: 10 | - "default" 11 | #- some_other_group 12 | os_floating_ip_pool: "os1_public" 13 | -------------------------------------------------------------------------------- /sample-jsons/mysql-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: mysql-service 5 | labels: 6 | name: mysql-pod 7 | context: docker-k8s-lab 8 | spec: 9 | ports: 10 | # the port that this service should serve on 11 | - port: 3306 12 | # label keys and values that must match in order to receive traffic for this service 13 | selector: 14 | name: mysql-pod 15 | context: docker-k8s-lab 16 | -------------------------------------------------------------------------------- /ansible/roles/contiv/tasks/packageManagerInstall.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Package Manager | Init the did_install fact 3 | set_fact: 4 | did_install: false 5 | 6 | - include: pkgMgrInstallers/centos-install.yml 7 | when: ansible_distribution == "CentOS" and not is_atomic 8 | 9 | - name: Package Manager | Set fact saying we did CentOS package install 10 | set_fact: 11 | did_install: true 12 | when: ansible_distribution == "CentOS" 13 | -------------------------------------------------------------------------------- /ansible/roles/docker/tasks/debian-install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: DEBIAN | Make sure this is stretch or sid, jessies does not have docker 3 | fail: msg="Docker.io only available in sid and stretch, https://wiki.debian.org/Docker" 4 | when: ansible_lsb.codename != "stretch" and ansible_lsb.codename != "sid" 5 | 6 | - name: DEBIAN | Install Docker 7 | action: "{{ ansible_pkg_mgr }}" 8 | args: 9 | name: docker.io 10 | state: latest 11 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/scheduler-configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Write the config file for the scheduler 3 | template: src=scheduler.j2 dest={{ kube_config_dir }}/scheduler 4 | 5 | - name: Write the kubecfg (auth) file for scheduler 6 | template: src=scheduler.kubeconfig.j2 dest={{ kube_config_dir }}/scheduler.kubeconfig 7 | 8 | - name: Setting the scheduler_modified fact to true 9 | set_fact: 10 | scheduler_modified: true 11 | 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/jmcvetta/napping/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | # IntelliJ configs 25 | .idea 26 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/text/encoding/japanese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/cluster-logging/kibana-service.yaml.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: kibana-logging 5 | namespace: kube-system 6 | labels: 7 | k8s-app: kibana-logging 8 | kubernetes.io/cluster-service: "true" 9 | kubernetes.io/name: "Kibana" 10 | spec: 11 | ports: 12 | - port: 5601 13 | protocol: TCP 14 | targetPort: ui 15 | selector: 16 | k8s-app: kibana-logging 17 | -------------------------------------------------------------------------------- /ansible/roles/node/defaults/main.yml: -------------------------------------------------------------------------------- 1 | kubelet_working_dir: /var/lib/kubelet 2 | localBuildOutput: ../../../_output/local/go/bin 3 | open_cadvisor_port: false 4 | 5 | services_enabled: true 6 | kubelet_modified: false 7 | proxy_modified: false 8 | 9 | # List of Kubernetes node binaries to download and install. 10 | kube_node_binaries: 11 | - kube-proxy 12 | - kubelet 13 | 14 | kube_node_rpms: 15 | - kubernetes-client 16 | - kubernetes-node 17 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd netbsd openbsd 6 | 7 | package terminal 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/kube-dash/kube-dash-svc.yaml.j2: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: "v1" 3 | kind: "Service" 4 | metadata: 5 | labels: 6 | name: "kubedash" 7 | kubernetes.io/cluster-service: "true" 8 | name: "kubedash" 9 | namespace: "kube-system" 10 | spec: 11 | type: "LoadBalancer" 12 | ports: 13 | - 14 | port: 80 15 | targetPort: 8289 16 | selector: 17 | name: "kubedash" 18 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail-provision/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Pull config image 3 | command: docker pull opencontrail/config:2.20 4 | delegate_to: "{{ groups['masters'][0] }}" 5 | 6 | - name: controller provisioning 7 | include: master.yml 8 | when: inventory_hostname == groups['masters'][0] 9 | 10 | - name: node provisioning 11 | include: nodes.yml 12 | when: inventory_hostname in groups['nodes'] or inventory_hostname in groups['gateways'] -------------------------------------------------------------------------------- /ansible/roles/pre-ansible/defaults/main.yml: -------------------------------------------------------------------------------- 1 | # The directory where binaries are stored on Ansible 2 | # # managed systems. 3 | bin_dir: /usr/bin 4 | 5 | # The directory where scripts used for bootstrapping CoreOS 6 | # reside. 7 | bootstrap_script_dir: /opt/bin 8 | pypy_version: 2.4.0 9 | 10 | pypy_download_url_base: "https://bitbucket.org/pypy/pypy/downloads" 11 | pypy_download_url: "{{ pypy_download_url_base }}/pypy-{{ pypy_version }}-linux64.tar.bz2" 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go 386 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/apimachinery/pkg/api/meta/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - brendandburns 9 | - derekwaynecarr 10 | - caesarxuchao 11 | - mikedanese 12 | - liggitt 13 | - nikhiljindal 14 | - gmarek 15 | - janetkuo 16 | - ncdc 17 | - eparis 18 | - dims 19 | - krousey 20 | - resouer 21 | - david-mcmahon 22 | - mfojtik 23 | - jianhuiz 24 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/masters-control.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Ensure configuration directory exists 3 | file: path="/etc/contrail" state=directory 4 | 5 | - name: Configure control-node 6 | template: src=contrail-control.conf.j2 dest=/etc/contrail/contrail-control.conf 7 | notify: 8 | - restart contrail-control 9 | 10 | - name: Install control-node manifest 11 | copy: src=contrail-control.manifest dest="{{ kube_manifest_dir }}" 12 | 13 | 14 | -------------------------------------------------------------------------------- /kubernetes-ha-deployment/etcd/etcd.env: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ETCD_1="ovs-10.k8s.test.com" # IP or hostname 4 | ETCD_2="ovs-11.k8s.test.com" # IP or hostname 5 | ETCD_3="ovs-12.k8s.test.com" # IP or hostname 6 | 7 | CURRENT_NODE="1" # should be 1,2 or 3 8 | 9 | # For first server generate token manually via 10 | # curl https://discovery.etcd.io/new 11 | 12 | # For further servers set to generated token 13 | ETCD_TOKEN="eea0bff29bb533af9d3c3ab8132497b5" 14 | 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go amd64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/text/encoding/simplifiedchinese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /ansible/roles/etcd/files/etcd.upstart: -------------------------------------------------------------------------------- 1 | description "etcd 2.0" 2 | 3 | start on (net-device-up and local-filesystems and runlevel [2345]) 4 | stop on runlevel [016] 5 | 6 | respawn 7 | respawn limit 10 5 8 | 9 | script 10 | if [ -f "/etc/etcd/etcd.conf" ]; then 11 | set -a 12 | . /etc/etcd/etcd.conf 13 | set +a 14 | fi 15 | 16 | mkdir -p /var/etcd 17 | chdir /var/etcd 18 | exec /usr/bin/etcd >>/var/log/etcd.log 2>&1 19 | end script 20 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/text/internal/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/client-go/rest/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - caesarxuchao 7 | - wojtek-t 8 | - deads2k 9 | - brendandburns 10 | - liggitt 11 | - nikhiljindal 12 | - gmarek 13 | - erictune 14 | - sttts 15 | - luxas 16 | - dims 17 | - errordeveloper 18 | - hongchaodeng 19 | - krousey 20 | - resouer 21 | - cjcullen 22 | - rmmh 23 | - asalkeld 24 | - juanvallejo 25 | - lojies 26 | -------------------------------------------------------------------------------- /ansible/roles/common/defaults/main.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # The directory where binaries are stored on Ansible 3 | # managed systems. 4 | bin_dir: /usr/bin 5 | 6 | # The directory used by Ansible to temporarily store 7 | # files on Ansible managed systems. 8 | ansible_temp_dir: /tmp/.ansible/files 9 | 10 | #Some default values that may get modified in etc/tasks/main.yml 11 | is_atomic: false 12 | is_coreos: false 13 | has_rpm: false 14 | has_firewalld: false 15 | has_iptables: false 16 | -------------------------------------------------------------------------------- /ansible/roles/contiv/tasks/default_network.yml: -------------------------------------------------------------------------------- 1 | # Required until the following PR is merged: 2 | # https://github.com/contiv/netplugin/pull/325 3 | - name: Contiv | wait for netmaster 4 | pause: seconds=10 5 | 6 | - name: Contiv | Delete default network 7 | raw: netctl net delete default-net 8 | ignore_errors: yes 9 | 10 | - name: Contiv | Configure network 11 | raw: netctl net create default-net --subnet={{contiv_default_subnet}} --gateway={{contiv_default_gw}} 12 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/cluster-logging/es-service.yaml.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: elasticsearch-logging 5 | namespace: kube-system 6 | labels: 7 | k8s-app: elasticsearch-logging 8 | kubernetes.io/cluster-service: "true" 9 | kubernetes.io/name: "Elasticsearch" 10 | spec: 11 | ports: 12 | - port: 9200 13 | protocol: TCP 14 | targetPort: db 15 | selector: 16 | k8s-app: elasticsearch-logging 17 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/tasks/dns.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: DNS | Assures {{ kube_addons_dir }}/dns dir exists 3 | file: path={{ kube_addons_dir }}/dns state=directory 4 | 5 | - name: DNS | Install Template from converted saltfiles 6 | template: 7 | args: 8 | src: "dns/{{ item }}.j2" 9 | dest: "{{ kube_addons_dir }}/dns/{{ item }}" 10 | mode: 0644 11 | owner: root 12 | group: root 13 | with_items: 14 | - skydns-rc.yaml 15 | - skydns-svc.yaml 16 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/tasks/generic-install.yml: -------------------------------------------------------------------------------- 1 | - name: Set pyyaml package name 2 | set_fact: 3 | pyyaml_name: python-yaml 4 | 5 | - name: Overwrite pyyaml package name for non-Debian 6 | set_fact: 7 | pyyaml_name: PyYAML 8 | when: ansible_distribution != "Debian" and ansible_distribution != "Ubuntu" 9 | 10 | - name: Install PyYAML for non-debian 11 | action: "{{ ansible_pkg_mgr }}" 12 | args: 13 | name: "{{ pyyaml_name }}" 14 | state: latest 15 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/firewalld.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Open firewalld port for apiserver 3 | firewalld: port={{ kube_master_api_port }}/tcp permanent=false state=enabled 4 | # in case this is also a node with firewalld turned off 5 | ignore_errors: yes 6 | 7 | - name: Save firewalld port for apiserver 8 | firewalld: port={{ kube_master_api_port }}/tcp permanent=true state=enabled 9 | # in case this is also a node with firewalld turned off 10 | ignore_errors: yes 11 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/proxy-configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Write the config files for proxy 3 | template: src=proxy.j2 dest={{ kube_config_dir }}/proxy 4 | notify: 5 | - restart proxy 6 | 7 | - name: Write the kubecfg (auth) file for kube-proxy 8 | template: src=proxy.kubeconfig.j2 dest={{ kube_config_dir }}/proxy.kubeconfig 9 | notify: 10 | - restart proxy 11 | 12 | - name: Setting the proxy_modified fact to true 13 | set_fact: 14 | proxy_modified: true 15 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/masters.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Set selinux permissive to enable directory mounts 3 | selinux: state=permissive policy={{ ansible_selinux.type }} 4 | when: ansible_selinux is defined and ansible_selinux.status == "enabled" 5 | 6 | - name: Assures manifests dir exists 7 | file: path={{ kube_manifest_dir }} state=directory 8 | 9 | - include: masters-services.yml 10 | 11 | - include: masters-config.yml 12 | 13 | - include: masters-control.yml 14 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/contrail-vrouter-agent.conf.node.j2: -------------------------------------------------------------------------------- 1 | [CONTROL-NODE] 2 | server={%for host in groups['masters']%}{{ hostvars[host]['ansible_' + opencontrail_interface]['ipv4']['address'] }} {% endfor %} 3 | 4 | 5 | [VIRTUAL-HOST-INTERFACE] 6 | name=vhost0 7 | 8 | ip={{ hostvars[inventory_hostname]['ipaddr'] }} 9 | 10 | {% if opencontrail_gateway %} 11 | gateway={{ opencontrail_gateway }} 12 | {% endif %} 13 | 14 | physical_interface={{ opencontrail_interface }} -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/zap/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | go_import_path: go.uber.org/zap 5 | env: 6 | global: 7 | - TEST_TIMEOUT_SCALE=10 8 | - GO111MODULE=on 9 | 10 | matrix: 11 | include: 12 | - go: 1.12.x 13 | - go: 1.13.x 14 | env: LINT=1 15 | 16 | script: 17 | - test -z "$LINT" || make lint 18 | - make test 19 | - make bench 20 | 21 | after_success: 22 | - make cover 23 | - bash <(curl -s https://codecov.io/bash) 24 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build go1.9 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | type Signal = syscall.Signal 13 | type Errno = syscall.Errno 14 | type SysProcAttr = syscall.SysProcAttr 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/sigs.k8s.io/yaml/yaml_go110.go: -------------------------------------------------------------------------------- 1 | // This file contains changes that are only compatible with go 1.10 and onwards. 2 | 3 | // +build go1.10 4 | 5 | package yaml 6 | 7 | import "encoding/json" 8 | 9 | // DisallowUnknownFields configures the JSON decoder to error out if unknown 10 | // fields come along, instead of dropping them by default. 11 | func DisallowUnknownFields(d *json.Decoder) *json.Decoder { 12 | d.DisallowUnknownFields() 13 | return d 14 | } 15 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/pkgMgrInstallers/generic-install.yml: -------------------------------------------------------------------------------- 1 | - name: Generic | Install kubernetes master 2 | action: "{{ ansible_pkg_mgr }}" 3 | args: 4 | name: kubernetes-master 5 | state: latest 6 | notify: 7 | - restart daemons 8 | - name: Generic | Install kubernetes node 9 | action: "{{ ansible_pkg_mgr }}" 10 | args: 11 | name: kubernetes-node 12 | state: latest 13 | notify: 14 | - restart daemons 15 | when: networking == 'opencontrail' 16 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/masters-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install templates 3 | copy: src="{{item}}" dest="{{ kube_manifest_dir }}" 4 | with_items: 5 | - contrail-api.manifest 6 | - contrail-schema.manifest 7 | - ifmap-server.manifest 8 | - kube-network-manager.manifest 9 | 10 | - name: Network manager configuration 11 | template: src=kube-network.conf.j2 dest={{ kube_config_dir }}/network.conf 12 | notify: 13 | - restart kube-network-manager 14 | -------------------------------------------------------------------------------- /demo-scripts/new-nginx-deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: nginx-deployment 5 | spec: 6 | replicas: 3 7 | template: 8 | metadata: 9 | labels: 10 | app: nginx 11 | nuage.io/subnet: tfd 12 | nuage.io/zone: tfd 13 | nuage.io/user: admin 14 | spec: 15 | containers: 16 | - name: nginx 17 | image: nginx:1.9.1 18 | ports: 19 | - containerPort: 80 20 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/tools/go/internal/gcimporter/newInterface11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.11 6 | 7 | package gcimporter 8 | 9 | import "go/types" 10 | 11 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 12 | return types.NewInterfaceType(methods, embeddeds) 13 | } 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/onsi/gomega/matchers/attributes_slice.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "encoding/xml" 5 | "strings" 6 | ) 7 | 8 | type attributesSlice []xml.Attr 9 | 10 | func (attrs attributesSlice) Len() int { return len(attrs) } 11 | func (attrs attributesSlice) Less(i, j int) bool { 12 | return strings.Compare(attrs[i].Name.Local, attrs[j].Name.Local) == -1 13 | } 14 | func (attrs attributesSlice) Swap(i, j int) { attrs[i], attrs[j] = attrs[j], attrs[i] } 15 | -------------------------------------------------------------------------------- /ansible/roles/contiv/tasks/netmaster_firewalld.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Netmaster Firewalld | Open Netmaster port 3 | firewalld: port={{ netmaster_port }}/tcp permanent=false state=enabled 4 | # in case this is also a node where firewalld turned off 5 | ignore_errors: yes 6 | 7 | - name: Netmaster Firewalld | Save Netmaster port 8 | firewalld: port={{ netmaster_port }}/tcp permanent=true state=enabled 9 | # in case this is also a node where firewalld turned off 10 | ignore_errors: yes 11 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail-provision/tasks/nodes.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Create virtual-router object 3 | command: docker run opencontrail/config:2.20 /usr/share/contrail-utils/provision_vrouter.py --api_server_ip {{ groups['masters'][0] }} --host_name "{{ inventory_hostname }}{% if hostvars[inventory_hostname]['ansible_domain'] != "" %}.{{ hostvars[inventory_hostname]['ansible_domain'] }}{% endif %}" --host_ip "{{ hostvars[inventory_hostname]['ipaddr'] }}" 4 | delegate_to: "{{ groups['masters'][0] }}" 5 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /ansible/roles/contiv/tasks/ovs.yml: -------------------------------------------------------------------------------- 1 | - include: packageManagerInstall.yml 2 | when: source_type == "packageManager" 3 | tags: 4 | - binary-update 5 | 6 | - name: OVS | Enable ovs 7 | service: name=openvswitch enabled=yes 8 | 9 | - name: OVS | Start ovs 10 | service: name=openvswitch state=started 11 | register: ovs_started 12 | 13 | - name: OVS | Configure ovs 14 | shell: "ovs-vsctl set-manager {{ item }}" 15 | with_items: 16 | - "tcp:127.0.0.1:6640" 17 | - "ptcp:6640" 18 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Fedora | Remove docker window manager on F20 3 | yum: pkg=docker state=absent 4 | when: ansible_distribution == "Fedora" and ansible_distribution_major_version == "20" 5 | tags: install 6 | 7 | - name: Override kubernetes facts 8 | include: override_facts.yml 9 | 10 | - name: Configure kubernetes 11 | include: configure.yml 12 | tags: configure 13 | 14 | - include: secrets.yml 15 | tags: 16 | secrets 17 | tags: configure 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/apimachinery/pkg/api/errors/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - lavalamp 6 | - smarterclayton 7 | - wojtek-t 8 | - deads2k 9 | - brendandburns 10 | - derekwaynecarr 11 | - caesarxuchao 12 | - mikedanese 13 | - liggitt 14 | - nikhiljindal 15 | - gmarek 16 | - erictune 17 | - saad-ali 18 | - janetkuo 19 | - tallclair 20 | - eparis 21 | - dims 22 | - hongchaodeng 23 | - krousey 24 | - cjcullen 25 | - david-mcmahon 26 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/sigs.k8s.io/yaml/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - dims 5 | - lavalamp 6 | - smarterclayton 7 | - deads2k 8 | - sttts 9 | - liggitt 10 | - caesarxuchao 11 | reviewers: 12 | - dims 13 | - thockin 14 | - lavalamp 15 | - smarterclayton 16 | - wojtek-t 17 | - deads2k 18 | - derekwaynecarr 19 | - caesarxuchao 20 | - mikedanese 21 | - liggitt 22 | - gmarek 23 | - sttts 24 | - ncdc 25 | - tallclair 26 | labels: 27 | - sig/api-machinery 28 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/collect-tokens.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Get the node token values 3 | slurp: 4 | src: "{{ kube_token_dir }}/{{ item }}-{{ inventory_hostname }}.token" 5 | with_items: 6 | - "system:kubelet" 7 | - "system:proxy" 8 | register: tokens 9 | delegate_to: "{{ groups['masters'][0] }}" 10 | 11 | - name: Set token facts 12 | set_fact: 13 | kubelet_token: "{{ tokens.results[0].content|b64decode }}" 14 | proxy_token: "{{ tokens.results[1].content|b64decode }}" 15 | 16 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/dns/skydns-svc.yaml.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: kube-dns 5 | namespace: kube-system 6 | labels: 7 | k8s-app: kube-dns 8 | kubernetes.io/cluster-service: "true" 9 | kubernetes.io/name: "KubeDNS" 10 | spec: 11 | selector: 12 | k8s-app: kube-dns 13 | clusterIP: {{ dns_server }} 14 | ports: 15 | - name: dns 16 | port: 53 17 | protocol: UDP 18 | - name: dns-tcp 19 | port: 53 20 | protocol: TCP 21 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/zap/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | vendor 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | *.pprof 27 | *.out 28 | *.log 29 | 30 | /bin 31 | cover.out 32 | cover.html 33 | -------------------------------------------------------------------------------- /ansible/roles/flannel/templates/flanneld.upstart: -------------------------------------------------------------------------------- 1 | description "flanneld 0.5.5" 2 | 3 | start on (net-device-up and local-filesystems and runlevel [2345]) 4 | stop on runlevel [016] 5 | 6 | respawn 7 | respawn limit 10 5 8 | 9 | script 10 | if [ -f "/etc/flannel/flanneld" ]; then 11 | set -a 12 | . /etc/flannel/flanneld 13 | set +a 14 | fi 15 | exec {{ bin_dir }}/flanneld -etcd-endpoints=$FLANNEL_ETCD -etcd-prefix=$FLANNEL_ETCD_KEY $FLANNEL_OPTIONS>>/var/log/flannel.log 2>&1 16 | end script 17 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/cluster-monitoring/influxdb-service.yaml.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: monitoring-influxdb 5 | namespace: kube-system 6 | labels: 7 | kubernetes.io/cluster-service: "true" 8 | kubernetes.io/name: "InfluxDB" 9 | spec: 10 | ports: 11 | - name: http 12 | port: 8083 13 | targetPort: 8083 14 | - name: api 15 | port: 8086 16 | targetPort: 8086 17 | selector: 18 | k8s-app: influxGrafana 19 | 20 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/vrouter-ubuntu.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Interface configuration file (physical) 3 | template: src=interface.cfg.j2 dest=/etc/network/interfaces.d/{{ opencontrail_interface }}.cfg 4 | notify: 5 | - Bounce physical interface 6 | 7 | - name: Interface configuration file (vhost0) 8 | template: src=vhost0.cfg.j2 dest=/etc/network/interfaces.d/vhost0.cfg 9 | notify: 10 | - Bounce vhost0 interface 11 | 12 | - name: Enable vhost0 interface 13 | command: ifup vhost0 14 | 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/go-cmp/cmp/export_panic.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | // +build purego 6 | 7 | package cmp 8 | 9 | import "reflect" 10 | 11 | const supportExporters = false 12 | 13 | func retrieveUnexportedField(reflect.Value, reflect.StructField) reflect.Value { 14 | panic("no support for forcibly accessing unexported fields") 15 | } 16 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/tasks/kube-ui.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: KUBE-UI | Assures {{ kube_addons_dir }}/kube-ui dir exists 3 | file: path={{ kube_addons_dir }}/kube-ui state=directory 4 | 5 | - name: KUBE-UI | Copy kube-ui manifests to master 6 | template: 7 | args: 8 | src: "kube-ui/{{ item }}.j2" 9 | dest: "{{ kube_addons_dir }}/kube-ui/{{ item }}" 10 | mode: 0644 11 | owner: root 12 | group: root 13 | with_items: 14 | - dashboard-controller.yaml 15 | - dashboard-service.yaml 16 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/fluentd-install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install fluentd pod into each node 3 | get_url: 4 | url=https://raw.githubusercontent.com/kubernetes/kubernetes/master/cluster/saltbase/salt/fluentd-es/fluentd-es.yaml 5 | dest="{{ kube_manifest_dir }}" 6 | force=yes 7 | validate_certs=False 8 | environment: 9 | http_proxy: "{{ http_proxy|default('') }}" 10 | https_proxy: "{{ https_proxy|default('') }}" 11 | no_proxy: "{{ no_proxy|default('') }}" 12 | when: cluster_logging 13 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/kmod.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: build tag 3 | set_fact: 4 | kmod_build_tag: "{{ ansible_distribution | lower}}{{ansible_distribution_version}}-{{ansible_kernel}}" 5 | 6 | - name: Create directory 7 | file: path=/tmp/.ansible/build/{{ kmod_build_tag }} state=directory 8 | 9 | - include: kmod-build-fedora.yml 10 | when: ansible_distribution == "Fedora" 11 | 12 | - include: kmod-build-ubuntu.yml 13 | when: ansible_distribution == "Ubuntu" 14 | 15 | - include: kmod-artifacts.yml 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/atomic/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go_import_path: go.uber.org/atomic 4 | 5 | env: 6 | global: 7 | - GO111MODULE=on 8 | 9 | matrix: 10 | include: 11 | - go: 1.12.x 12 | - go: 1.13.x 13 | env: LINT=1 14 | 15 | cache: 16 | directories: 17 | - vendor 18 | 19 | before_install: 20 | - go version 21 | 22 | script: 23 | - test -z "$LINT" || make lint 24 | - make cover 25 | 26 | after_success: 27 | - bash <(curl -s https://codecov.io/bash) 28 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/go.uber.org/multierr/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go_import_path: go.uber.org/multierr 4 | 5 | env: 6 | global: 7 | - GO15VENDOREXPERIMENT=1 8 | - GO111MODULE=on 9 | 10 | go: 11 | - 1.11.x 12 | - 1.12.x 13 | - 1.13.x 14 | 15 | cache: 16 | directories: 17 | - vendor 18 | 19 | before_install: 20 | - go version 21 | 22 | script: 23 | - | 24 | set -e 25 | make lint 26 | make cover 27 | 28 | after_success: 29 | - bash <(curl -s https://codecov.io/bash) 30 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/config/example.conf: -------------------------------------------------------------------------------- 1 | checks = ["all", "-ST1003", "-ST1014"] 2 | initialisms = ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", 3 | "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", 4 | "IP", "JSON", "QPS", "RAM", "RPC", "SLA", 5 | "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", 6 | "UDP", "UI", "GID", "UID", "UUID", "URI", 7 | "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", 8 | "XSS", "SIP", "RTP"] 9 | dot_import_whitelist = [] 10 | http_status_code_whitelist = ["200", "400", "404", "500"] 11 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/lint/stats.go: -------------------------------------------------------------------------------- 1 | package lint 2 | 3 | const ( 4 | StateInitializing = 0 5 | StateGraph = 1 6 | StateProcessing = 2 7 | StateCumulative = 3 8 | ) 9 | 10 | type Stats struct { 11 | State uint32 12 | 13 | InitialPackages uint32 14 | TotalPackages uint32 15 | ProcessedPackages uint32 16 | ProcessedInitialPackages uint32 17 | Problems uint32 18 | ActiveWorkers uint32 19 | TotalWorkers uint32 20 | } 21 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/tasks/kube-dash.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: KUBE-DASH | Assures {{ kube_addons_dir }}/kube-dash dir exists 3 | file: path={{ kube_addons_dir }}/kube-dash state=directory 4 | 5 | - name: KUBE-DASH | Copy kube-dash manifests to master 6 | template: 7 | args: 8 | src: "kube-dash/{{ item }}.j2" 9 | dest: "{{ kube_addons_dir }}/kube-dash/{{ item }}" 10 | mode: 0644 11 | owner: root 12 | group: root 13 | with_items: 14 | - kube-dash-rc.yaml 15 | - kube-dash-svc.yaml 16 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/controller-manager-configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Write the config file for the controller-manager 3 | template: src=controller-manager.j2 dest={{ kube_config_dir }}/controller-manager 4 | 5 | - name: Write the kubecfg (auth) file for controller-manager 6 | template: src=controller-manager.kubeconfig.j2 dest={{ kube_config_dir }}/controller-manager.kubeconfig 7 | 8 | - name: Setting the controller_manager_modified fact to true 9 | set_fact: 10 | controller_manager_modified: true 11 | 12 | -------------------------------------------------------------------------------- /ansible/roles/nuage-master/tasks/tokens.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Run kube-gen-token script to create a nuage token 3 | command: "{{ kube_script_dir }}/kube-gen-token.sh system:nuage" 4 | environment: 5 | TOKEN_DIR: "{{ kube_token_dir }}" 6 | 7 | - name: Get the nuage token 8 | slurp: 9 | src: "{{ kube_token_dir }}/system:nuage.token" 10 | register: tokens 11 | delegate_to: "{{ nuage_ca_master }}" 12 | 13 | - name: Set nuage token fact 14 | set_fact: 15 | nuage_token: "{{ tokens.content|b64decode }}" 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/lint/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Golint 2 | 3 | ## Before filing an issue: 4 | 5 | ### Are you having trouble building golint? 6 | 7 | Check you have the latest version of its dependencies. Run 8 | ``` 9 | go get -u golang.org/x/lint/golint 10 | ``` 11 | If you still have problems, consider searching for existing issues before filing a new issue. 12 | 13 | ## Before sending a pull request: 14 | 15 | Have you understood the purpose of golint? Make sure to carefully read `README`. 16 | -------------------------------------------------------------------------------- /ansible/roles/contiv/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: reload systemd 3 | command: systemctl --system daemon-reload 4 | 5 | - name: restart netmaster 6 | service: name=netmaster state=restarted 7 | when: netmaster_started.changed == false 8 | 9 | - name: restart netplugin 10 | service: name=netplugin state=restarted 11 | when: netplugin_started.changed == false 12 | 13 | - name: restart kubelet 14 | service: name=kubelet state=restarted 15 | 16 | - name: Save iptables rules 17 | command: service iptables save 18 | -------------------------------------------------------------------------------- /ansible/roles/flannel/templates/flanneld.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | After=network-online.target 3 | Wants=network-online.target 4 | Description=flannel is an etcd backed overlay network for containers 5 | 6 | [Service] 7 | Type=notify 8 | EnvironmentFile=/etc/sysconfig/flanneld 9 | ExecStart={{ bin_dir }}/flanneld --etcd-endpoints=${FLANNEL_ETCD} --etcd-prefix=${FLANNEL_ETCD_KEY} $FLANNEL_OPTIONS 10 | ExecStartPost={{ bin_dir }}/mk-docker-opts.sh -d /run/flannel_docker_opts.env -i 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /ansible/roles/nuage-master/templates/nuage.kubeconfig.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Config 3 | current-context: nuage-to-{{ cluster_name }} 4 | preferences: {} 5 | clusters: 6 | - cluster: 7 | insecure-skip-tls-verify: true 8 | server: https://{{ groups['masters'][0] }}:{{ k8s_api_port }} 9 | name: {{ cluster_name }} 10 | contexts: 11 | - context: 12 | cluster: {{ cluster_name }} 13 | user: nuage 14 | name: nuage-to-{{ cluster_name }} 15 | users: 16 | - name: nuage 17 | user: 18 | token: {{ nuage_token }} 19 | -------------------------------------------------------------------------------- /ansible/roles/flannel/files/40-docker-depends-on-flannel.conf: -------------------------------------------------------------------------------- 1 | # Dropin for docker.service 2 | 3 | [Unit] 4 | # Flannel must be started before Docker. 5 | # Flannel acquires subnet for the host and writes appropriate 6 | # configuration in /run/flannel_docker_opts.env that is being read 7 | # by Docker service. 8 | # See https://coreos.com/kubernetes/docs/latest/deploy-master.html 9 | # and https://github.com/coreos/flannel/issues/112#issuecomment-72708347 10 | # for details. 11 | Requires=flanneld.service 12 | After=flanneld.service 13 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/kube-addons.service.j2: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Kubernetes Addon Object Manager 3 | Documentation=https://github.com/kubernetes/kubernetes 4 | 5 | [Service] 6 | Environment=HOME=/root 7 | Environment="TOKEN_DIR={{ kube_token_dir }}" 8 | Environment="KUBECTL_BIN={{ bin_dir }}/kubectl" 9 | Environment="KUBERNETES_MASTER_NAME={{ groups['masters'][0] }}" 10 | Environment="TRUSTY_MASTER=true" 11 | ExecStart={{ kube_script_dir }}/kube-addons.sh 12 | 13 | [Install] 14 | WantedBy=multi-user.target 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | // +build !cmp_debug 6 | 7 | package diff 8 | 9 | var debug debugger 10 | 11 | type debugger struct{} 12 | 13 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 14 | return f 15 | } 16 | func (debugger) Update() {} 17 | func (debugger) Finish() {} 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/cmd/staticcheck/README.md: -------------------------------------------------------------------------------- 1 | # staticcheck 2 | 3 | _staticcheck_ offers extensive analysis of Go code, covering a myriad 4 | of categories. It will detect bugs, suggest code simplifications, 5 | point out dead code, and more. 6 | 7 | ## Installation 8 | 9 | See [the main README](https://github.com/dominikh/go-tools#installation) for installation instructions. 10 | 11 | ## Documentation 12 | 13 | Detailed documentation can be found on 14 | [staticcheck.io](https://staticcheck.io/docs/). 15 | 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/simple/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to gosimple 2 | 3 | ## Before filing an issue: 4 | 5 | ### Are you having trouble building gosimple? 6 | 7 | Check you have the latest version of its dependencies. Run 8 | ``` 9 | go get -u honnef.co/go/tools/simple 10 | ``` 11 | If you still have problems, consider searching for existing issues before filing a new issue. 12 | 13 | ## Before sending a pull request: 14 | 15 | Have you understood the purpose of gosimple? Make sure to carefully read `README`. 16 | -------------------------------------------------------------------------------- /sample-jsons/nginx_pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ReplicationController 3 | metadata: 4 | name: nginx 5 | spec: 6 | replicas: 2 7 | selector: 8 | app: nginx 9 | template: 10 | metadata: 11 | name: nginx 12 | labels: 13 | app: nginx 14 | nuage.io/subnet: operations-wf 15 | nuage.io/zone: operations-wf 16 | nuage.io/user: admin 17 | 18 | spec: 19 | containers: 20 | - name: nginx 21 | image: nginx 22 | ports: 23 | - containerPort: 80 24 | 25 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/defaults/main.yml: -------------------------------------------------------------------------------- 1 | kube_addons_dir: "{{ kube_config_dir }}/addons" 2 | 3 | local_temp_addon_dir: /tmp/kubernetes/addons 4 | 5 | metrics_memory_initial: 200 6 | metrics_memory_per_node: 4 7 | metrics_memory: "{{ metrics_memory_initial + (metrics_memory_per_node * (groups['nodes'] | count)) }}Mi" 8 | 9 | eventer_memory_initial: 200 10 | eventer_memory_per_node: 500 11 | eventer_memory: "{{ eventer_memory_initial + (eventer_memory_per_node * (groups['nodes'] | count) / 1024) | round | int }}Mi" 12 | 13 | grains: "" 14 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/kube-apiserver-dropin.j2: -------------------------------------------------------------------------------- 1 | [Unit] 2 | After=etcd2.service 3 | 4 | [Service] 5 | User=root 6 | # Note: ExecStart= is required to clear the ExecStart in the unit file 7 | ExecStart= 8 | ExecStart={{ bin_dir }}/kube-apiserver \ 9 | $KUBE_LOGTOSTDERR \ 10 | $KUBE_LOG_LEVEL \ 11 | $KUBE_ETCD_SERVERS \ 12 | $KUBE_API_ADDRESS \ 13 | $KUBE_API_PORT \ 14 | $KUBELET_PORT \ 15 | $KUBE_ALLOW_PRIV \ 16 | $KUBE_SERVICE_ADDRESSES \ 17 | $KUBE_ADMISSION_CONTROL \ 18 | $KUBE_API_ARGS 19 | -------------------------------------------------------------------------------- /ansible/roles/node/templates/proxy.kubeconfig.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Config 3 | current-context: proxy-to-{{ cluster_name }} 4 | preferences: {} 5 | contexts: 6 | - context: 7 | cluster: {{ cluster_name }} 8 | user: proxy 9 | name: proxy-to-{{ cluster_name }} 10 | clusters: 11 | - cluster: 12 | certificate-authority: {{ kube_cert_dir }}/ca.crt 13 | server: https://{{ groups['masters'][0] }}:{{ kube_master_api_port }} 14 | name: {{ cluster_name }} 15 | users: 16 | - name: proxy 17 | user: 18 | token: {{ proxy_token }} 19 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "daee8a88b3498b61c5640056665b8b9eea062006f5e596bbb6a3ed9119a11ec7" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/lint/golint/importcomment.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2018 The Go Authors. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file or at 5 | // https://developers.google.com/open-source/licenses/bsd. 6 | 7 | // +build go1.12 8 | 9 | // Require use of the correct import path only for Go 1.12+ users, so 10 | // any breakages coincide with people updating their CI configs or 11 | // whatnot. 12 | 13 | package main // import "golang.org/x/lint/golint" 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/staticcheck/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to staticcheck 2 | 3 | ## Before filing an issue: 4 | 5 | ### Are you having trouble building staticcheck? 6 | 7 | Check you have the latest version of its dependencies. Run 8 | ``` 9 | go get -u honnef.co/go/tools/staticcheck 10 | ``` 11 | If you still have problems, consider searching for existing issues before filing a new issue. 12 | 13 | ## Before sending a pull request: 14 | 15 | Have you understood the purpose of staticcheck? Make sure to carefully read `README`. 16 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/pkgMgrInstallers/fedora-install.yml: -------------------------------------------------------------------------------- 1 | - name: Fedora | Install kubernetes master 2 | action: "{{ ansible_pkg_mgr }}" 3 | args: 4 | name: kubernetes-master 5 | state: latest 6 | enablerepo: "updates-testing" 7 | notify: 8 | - restart daemons 9 | 10 | - name: Fedora | Install kubernetes node 11 | action: "{{ ansible_pkg_mgr }}" 12 | args: 13 | name: kubernetes-node 14 | state: latest 15 | enablerepo: "updates-testing" 16 | notify: 17 | - restart daemons 18 | when: networking == 'opencontrail' 19 | -------------------------------------------------------------------------------- /ansible/roles/node/templates/kubelet.kubeconfig.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Config 3 | current-context: kubelet-to-{{ cluster_name }} 4 | preferences: {} 5 | clusters: 6 | - cluster: 7 | certificate-authority: {{ kube_cert_dir }}/ca.crt 8 | server: https://{{ groups['masters'][0] }}:{{ kube_master_api_port }} 9 | name: {{ cluster_name }} 10 | contexts: 11 | - context: 12 | cluster: {{ cluster_name }} 13 | user: kubelet 14 | name: kubelet-to-{{ cluster_name }} 15 | users: 16 | - name: kubelet 17 | user: 18 | token: {{ kubelet_token }} 19 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/gateway-redhat.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - name: Interface configuration file 4 | template: src=ifcfg-gateway.j2 dest=/etc/sysconfig/network-scripts/ifcfg-{{ item }} 5 | with_items: 6 | - gateway0 7 | - gateway1 8 | 9 | - name: Static routes 10 | template: src=route-{{ item }}.j2 dest=/etc/sysconfig/network-scripts/route-{{ item }} 11 | with_items: 12 | - gateway0 13 | - gateway1 14 | 15 | - name: Activate gateway0 16 | command: ifup gateway0 17 | 18 | - name: Activate gateway1 19 | command: ifup gateway1 20 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/staticcheck/buildtag.go: -------------------------------------------------------------------------------- 1 | package staticcheck 2 | 3 | import ( 4 | "go/ast" 5 | "strings" 6 | 7 | . "honnef.co/go/tools/lint/lintdsl" 8 | ) 9 | 10 | func buildTags(f *ast.File) [][]string { 11 | var out [][]string 12 | for _, line := range strings.Split(Preamble(f), "\n") { 13 | if !strings.HasPrefix(line, "+build ") { 14 | continue 15 | } 16 | line = strings.TrimSpace(strings.TrimPrefix(line, "+build ")) 17 | fields := strings.Fields(line) 18 | out = append(out, fields) 19 | } 20 | return out 21 | } 22 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/kubectl.kubeconfig.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Config 3 | current-context: kubectl-to-{{ cluster_name }} 4 | preferences: {} 5 | clusters: 6 | - cluster: 7 | certificate-authority-data: {{ kube_ca_cert|b64encode }} 8 | server: https://{{ groups['masters'][0] }}:{{ kube_master_api_port }} 9 | name: {{ cluster_name }} 10 | contexts: 11 | - context: 12 | cluster: {{ cluster_name }} 13 | user: kubectl 14 | name: kubectl-to-{{ cluster_name }} 15 | users: 16 | - name: kubectl 17 | user: 18 | token: {{ kubectl_token }} 19 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/jmcvetta/napping/util.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2013 Jason McVetta. This is Free Software, released 2 | // under the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for 3 | // details. Resist intellectual serfdom - the ownership of ideas is akin to 4 | // slavery. 5 | 6 | package napping 7 | 8 | import ( 9 | "encoding/json" 10 | ) 11 | 12 | // pretty pretty-prints an interface using the JSON marshaler 13 | func pretty(v interface{}) string { 14 | b, _ := json.MarshalIndent(v, "", "\t") 15 | return string(b) 16 | } 17 | -------------------------------------------------------------------------------- /ansible/roles/flannel/tasks/ubuntu.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Ubuntu | Configure Docker to use Flannel network 3 | lineinfile: 4 | dest: "{{ docker_config_dir }}/docker" 5 | state: present 6 | line: "{{ item.line }}" 7 | regexp: "{{ item.regexp }}" 8 | with_items: 9 | - { line: '. /run/flannel/subnet.env', regexp: '. /run/flannel/subnet.env' } 10 | - { line: 'DOCKER_OPTS="--bip ${FLANNEL_SUBNET} --mtu ${FLANNEL_MTU}"',regexp: '^DOCKER_OPTS=' } 11 | when: ansible_distribution_major_version|int < 15 12 | notify: 13 | - restart flannel 14 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/scheduler.kubeconfig.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Config 3 | current-context: scheduler-to-{{ cluster_name }} 4 | preferences: {} 5 | clusters: 6 | - cluster: 7 | certificate-authority: {{ kube_cert_dir }}/ca.crt 8 | server: https://{{ groups['masters'][0] }}:{{ kube_master_api_port }} 9 | name: {{ cluster_name }} 10 | contexts: 11 | - context: 12 | cluster: {{ cluster_name }} 13 | user: scheduler 14 | name: scheduler-to-{{ cluster_name }} 15 | users: 16 | - name: scheduler 17 | user: 18 | token: {{ scheduler_token }} 19 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/iptables.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Get iptables rules 3 | command: iptables -L --wait 4 | register: iptablesrules 5 | always_run: yes 6 | 7 | - name: Open apiserver port with iptables 8 | command: /sbin/iptables -I INPUT 1 -p tcp --dport {{ kube_master_api_port }} -j ACCEPT -m comment --comment "kube-apiserver" 9 | when: "'kube-apiserver' not in iptablesrules.stdout" 10 | notify: 11 | - restart iptables 12 | 13 | - name: Save iptables rules 14 | command: service iptables save 15 | when: "'kube-apiserver' not in iptablesrules.stdout" 16 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/kube-apiserver-default.j2: -------------------------------------------------------------------------------- 1 | . {{ kube_config_dir }}/config 2 | . {{ kube_config_dir }}/apiserver 3 | 4 | KUBE_APISERVER_OPTS="$KUBE_LOGTOSTDERR \ 5 | $KUBE_LOG_LEVEL \ 6 | $KUBE_ETCD_SERVERS \ 7 | $KUBE_API_ADDRESS \ 8 | $KUBE_API_PORT \ 9 | $KUBELET_PORT \ 10 | $KUBE_ALLOW_PRIV \ 11 | $KUBE_SERVICE_ADDRESSES \ 12 | $KUBE_ADMISSION_CONTROL \ 13 | $KUBE_API_ARGS" 14 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/klog/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `klog` is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/kardianos/osext/osext_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //+build !go1.8 6 | 7 | package osext 8 | 9 | import ( 10 | "os" 11 | "strconv" 12 | "syscall" 13 | ) 14 | 15 | func executable() (string, error) { 16 | f, err := os.Open("/proc/" + strconv.Itoa(os.Getpid()) + "/text") 17 | if err != nil { 18 | return "", err 19 | } 20 | defer f.Close() 21 | return syscall.Fd2path(int(f.Fd())) 22 | } 23 | -------------------------------------------------------------------------------- /ansible/roles/contiv/tasks/netmaster_iptables.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Netmaster IPtables | Get iptables rules 3 | command: iptables -L --wait 4 | register: iptablesrules 5 | always_run: yes 6 | 7 | - name: Netmaster IPtables | Enable iptables at boot 8 | service: name=iptables enabled=yes state=started 9 | 10 | - name: Netmaster IPtables | Open Netmaster with iptables 11 | command: /sbin/iptables -I INPUT 1 -p tcp --dport {{ netmaster_port }} -j ACCEPT -m comment --comment "contiv" 12 | when: "'contiv' not in iptablesrules.stdout" 13 | notify: 14 | - Save iptables rules 15 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/templates/cluster-monitoring/grafana-service.yaml.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: monitoring-grafana 5 | namespace: kube-system 6 | labels: 7 | kubernetes.io/cluster-service: "true" 8 | kubernetes.io/name: "Grafana" 9 | spec: 10 | # On production clusters, consider setting up auth for grafana, and 11 | # exposing Grafana either using a LoadBalancer or a public IP. 12 | # type: LoadBalancer 13 | ports: 14 | - port: 80 15 | targetPort: 3000 16 | selector: 17 | k8s-app: influxGrafana 18 | 19 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This remvoves the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/sigs.k8s.io/yaml/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `yaml` Project is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /ansible/roles/etcd/tasks/etcd2-configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: CoreOS | Create etcd dropin directory 3 | file: path=/etc/systemd/system/etcd2.service.d state=directory mode=0755 4 | 5 | - name: CoreOS | Write etcd dropin file 6 | copy: src=10-conf-file.conf dest="/etc/systemd/system/etcd2.service.d/10-conf-file.conf" 7 | register: etcd2_dropin 8 | notify: 9 | - reload systemd 10 | 11 | - name: CoreOS | Write etcd config file 12 | template: src=etcd.conf.j2 dest=/etc/etcd/etcd.conf 13 | 14 | - name : Set the etcd2_modified fact to true 15 | set_fact: 16 | etcd2_modified: true 17 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - brendandburns 9 | - caesarxuchao 10 | - liggitt 11 | - nikhiljindal 12 | - gmarek 13 | - erictune 14 | - davidopp 15 | - sttts 16 | - quinton-hoole 17 | - luxas 18 | - janetkuo 19 | - justinsb 20 | - ncdc 21 | - soltysh 22 | - dims 23 | - madhusudancs 24 | - hongchaodeng 25 | - krousey 26 | - mml 27 | - mbohlool 28 | - david-mcmahon 29 | - therc 30 | - mqliang 31 | - kevin-wangzefeng 32 | - jianhuiz 33 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/tasks/cluster-logging.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: LOGGING | Assures {{ kube_addons_dir }}/cluster-logging dir exists 3 | file: path={{ kube_addons_dir }}/cluster-logging state=directory 4 | 5 | - name: LOGGING | Copy logging manifests to master 6 | template: 7 | args: 8 | src: "cluster-logging/{{ item }}.j2" 9 | dest: "{{ kube_addons_dir }}/cluster-logging/{{ item }}" 10 | mode: 0644 11 | owner: root 12 | group: root 13 | with_items: 14 | - es-controller.yaml 15 | - es-service.yaml 16 | - kibana-controller.yaml 17 | - kibana-service.yaml 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /ansible/vagrant/ansible.cfg: -------------------------------------------------------------------------------- 1 | # Ansible configuration to use in Vagrant environment. 2 | 3 | [defaults] 4 | # VM fingerprint changes when you recreate VM, so let's disable its validation. 5 | host_key_checking = False 6 | 7 | # Use vagrant private key. 8 | ansible_ssh_private_key_file: ~/.vagrant.d/insecure_private_key 9 | 10 | # Vagrant prepares inventory file with proper auth settings. 11 | inventory = .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory 12 | 13 | # Add main roles library to the roles path. Allows to use pre-ansible role in 14 | # vagrant-ansible.yml. 15 | roles_path = ../roles 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,!race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /ansible/roles/node/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: reload systemd 3 | command: systemctl --system daemon-reload 4 | notify: 5 | - restart daemons 6 | when: not (ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int < 15) 7 | 8 | - name: restart daemons 9 | command: /bin/true 10 | notify: 11 | - restart kubelet 12 | - restart proxy 13 | 14 | - name: restart kubelet 15 | service: name=kubelet state=restarted 16 | 17 | - name: restart proxy 18 | service: name=kube-proxy state=restarted 19 | 20 | - name: restart iptables 21 | service: name=iptables state=restarted 22 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/hashicorp/golang-lru/README.md: -------------------------------------------------------------------------------- 1 | golang-lru 2 | ========== 3 | 4 | This provides the `lru` package which implements a fixed-size 5 | thread safe LRU cache. It is based on the cache in Groupcache. 6 | 7 | Documentation 8 | ============= 9 | 10 | Full docs are available on [Godoc](http://godoc.org/github.com/hashicorp/golang-lru) 11 | 12 | Example 13 | ======= 14 | 15 | Using the LRU is very simple: 16 | 17 | ```go 18 | l, _ := New(128) 19 | for i := 0; i < 256; i++ { 20 | l.Add(i, nil) 21 | } 22 | if l.Len() != 128 { 23 | panic(fmt.Sprintf("bad len: %v", l.Len())) 24 | } 25 | ``` 26 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/controller-manager.kubeconfig.j2: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Config 3 | current-context: controller-manager-to-{{ cluster_name }} 4 | preferences: {} 5 | clusters: 6 | - cluster: 7 | certificate-authority: {{ kube_cert_dir }}/ca.crt 8 | server: https://{{ groups['masters'][0] }}:{{ kube_master_api_port }} 9 | name: {{ cluster_name }} 10 | contexts: 11 | - context: 12 | cluster: {{ cluster_name }} 13 | user: controller-manager 14 | name: controller-manager-to-{{ cluster_name }} 15 | users: 16 | - name: controller-manager 17 | user: 18 | token: {{ controller_manager_token }} 19 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/collect-tokens.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Get the master token values 3 | slurp: 4 | src: "{{ kube_token_dir }}/{{ item }}-{{ inventory_hostname }}.token" 5 | with_items: 6 | - "system:controller_manager" 7 | - "system:scheduler" 8 | - "system:kubectl" 9 | register: tokens 10 | delegate_to: "{{ groups['masters'][0] }}" 11 | 12 | - name: Set token facts 13 | set_fact: 14 | controller_manager_token: "{{ tokens.results[0].content|b64decode }}" 15 | scheduler_token: "{{ tokens.results[1].content|b64decode }}" 16 | kubectl_token: "{{ tokens.results[2].content|b64decode }}" 17 | 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/windows/types_windows_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/windows/types_windows_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/files/kube-network-manager.manifest: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "v1", 3 | "kind": "Pod", 4 | "metadata": { 5 | "namespace": "opencontrail", 6 | "name": "kube-network-manager" 7 | }, 8 | "spec":{ 9 | "hostNetwork": true, 10 | "containers":[{ 11 | "name": "kube-network-manager", 12 | "image": "opencontrail/kube-network-manager", 13 | "volumeMounts": [{ 14 | "name": "config", 15 | "mountPath": "/etc/kubernetes" 16 | }] 17 | }], 18 | "volumes": [{ 19 | "name": "config", 20 | "hostPath": {"path": "/etc/kubernetes"} 21 | }] 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: reload and restart kube-addons 3 | command: systemctl --system daemon-reload 4 | notify: 5 | - restart kube-addons 6 | 7 | - name: restart kube-addons 8 | service: name=kube-addons state=restarted 9 | 10 | - name: restart apiserver 11 | service: name=kube-apiserver state=restarted 12 | 13 | # The kubernetes role invokes restart daemons. It must be defined here 14 | # since the kubernetes-addons playbook depends on that role to setup basic 15 | # variables such as the kubernetes configuration file directory. 16 | - name: restart daemons 17 | command: /bin/true 18 | -------------------------------------------------------------------------------- /ansible/roles/node/tasks/kubelet-configure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Create the kubelet working directory 3 | file: path={{ kubelet_working_dir }} state=directory 4 | 5 | - name: Write the config files for kubelet 6 | template: src=kubelet.j2 dest={{ kube_config_dir }}/kubelet 7 | 8 | - name: Write the kubecfg (auth) file for kubelet 9 | template: src=kubelet.kubeconfig.j2 dest={{ kube_config_dir }}/kubelet.kubeconfig 10 | 11 | - name: Make sure manifest directory exists 12 | file: path={{ kube_manifest_dir }} state=directory 13 | 14 | - name: Setting the kubelet_modified fact to true 15 | set_fact: 16 | kubelet_modified: true 17 | -------------------------------------------------------------------------------- /ansible/roles/nuage-master/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: restart daemons 3 | command: /bin/true 4 | notify: 5 | - restart apiserver 6 | - restart controller-manager 7 | - restart scheduler 8 | 9 | - name: restart apiserver 10 | service: name=kube-apiserver state=restarted 11 | ignore_errors: yes 12 | 13 | - name: restart controller-manager 14 | service: name=kube-controller-manager state=restarted 15 | ignore_errors: yes 16 | 17 | - name: restart scheduler 18 | service: name=kube-scheduler state=restarted 19 | ignore_errors: yes 20 | 21 | - name: save iptables rules 22 | command: service iptables save 23 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/BurntSushi/toml/encoding_types_1.1.go: -------------------------------------------------------------------------------- 1 | // +build !go1.2 2 | 3 | package toml 4 | 5 | // These interfaces were introduced in Go 1.2, so we add them manually when 6 | // compiling for Go 1.1. 7 | 8 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 9 | // so that Go 1.1 can be supported. 10 | type TextMarshaler interface { 11 | MarshalText() (text []byte, err error) 12 | } 13 | 14 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 15 | // here so that Go 1.1 can be supported. 16 | type TextUnmarshaler interface { 17 | UnmarshalText(text []byte) error 18 | } 19 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go: -------------------------------------------------------------------------------- 1 | // untested sections: 2 2 | 3 | package matchers 4 | 5 | import "github.com/onsi/gomega/format" 6 | 7 | type BeNilMatcher struct { 8 | } 9 | 10 | func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) { 11 | return isNil(actual), nil 12 | } 13 | 14 | func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) { 15 | return format.Message(actual, "to be nil") 16 | } 17 | 18 | func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) { 19 | return format.Message(actual, "not to be nil") 20 | } 21 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Build kernel module 3 | include: kmod.yml 4 | when: inventory_hostname == groups['masters'][0] 5 | 6 | - name: Install vrouter 7 | include: vrouter.yml 8 | when: inventory_hostname in groups['nodes'] or inventory_hostname in groups['gateways'] 9 | 10 | - name: Install compute nodes 11 | include: nodes.yml 12 | when: inventory_hostname in groups['nodes'] 13 | 14 | - name: Install gateways 15 | include: gateways.yml 16 | when: inventory_hostname in groups['gateways'] 17 | 18 | - name: Install master 19 | include: masters.yml 20 | when: inventory_hostname in groups['masters'] -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/net/http2/not_go111.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.11 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http/httptrace" 11 | "net/textproto" 12 | ) 13 | 14 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } 15 | 16 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} 17 | 18 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /sample-jsons/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: nginx-service 5 | labels: 6 | nuage.io/private-service: false 7 | nuage.io/network-macro-group.name: Operations_WF_Macro_Group 8 | spec: 9 | ports: 10 | - port: 8000 # the port that this service should serve on 11 | # the container on each pod to connect to, can be a name 12 | # (e.g. 'www') or a number (e.g. 80) 13 | targetPort: 80 14 | protocol: TCP 15 | # just like the selector in the replication controller, 16 | # but this time it identifies the set of pods to load balance 17 | # traffic to. 18 | selector: 19 | app: nginx 20 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes/tasks/override_facts.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Update {{ kube_script_dir }} if this is atomic 3 | set_fact: 4 | kube_script_dir: "/usr/local/libexec/kubernetes" 5 | when: is_atomic and kube_script_dir == "/usr/libexec/kubernetes" 6 | 7 | - name: Initialize the python_bin fact 8 | set_fact: 9 | python_bin: "python" 10 | 11 | - name: Update facts if this is CoreOS or Ubuntu 14.04 12 | set_fact: 13 | bin_dir: "/opt/bin" 14 | kube_script_dir: "/opt/bin/kubernetes" 15 | python_bin: "/opt/bin/python" 16 | when: is_coreos or ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 15 17 | 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/honnef.co/go/tools/facts/token.go: -------------------------------------------------------------------------------- 1 | package facts 2 | 3 | import ( 4 | "go/ast" 5 | "go/token" 6 | "reflect" 7 | 8 | "golang.org/x/tools/go/analysis" 9 | ) 10 | 11 | var TokenFile = &analysis.Analyzer{ 12 | Name: "tokenfileanalyzer", 13 | Doc: "creates a mapping of *token.File to *ast.File", 14 | Run: func(pass *analysis.Pass) (interface{}, error) { 15 | m := map[*token.File]*ast.File{} 16 | for _, af := range pass.Files { 17 | tf := pass.Fset.File(af.Pos()) 18 | m[tf] = af 19 | } 20 | return m, nil 21 | }, 22 | RunDespiteErrors: true, 23 | ResultType: reflect.TypeOf(map[*token.File]*ast.File{}), 24 | } 25 | -------------------------------------------------------------------------------- /ansible/roles/master/templates/kubelet.j2: -------------------------------------------------------------------------------- 1 | ### 2 | # kubernetes kubelet (node) config 3 | 4 | # The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces) 5 | KUBELET_ADDRESS="--address=0.0.0.0" 6 | 7 | # The port for the info server to serve on 8 | # KUBELET_PORT="--port=10250" 9 | 10 | # You may leave this blank to use the actual hostname 11 | KUBELET_HOSTNAME="--hostname-override={{ inventory_hostname }}" 12 | 13 | # location of the api-server 14 | KUBELET_API_SERVER="--api-servers=http://localhost:{{ kube_master_insecure_port }}" 15 | 16 | # Add your own! 17 | KUBELET_ARGS="--register-node=false --config={{ kube_manifest_dir }}" 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/grpc/go.mod: -------------------------------------------------------------------------------- 1 | module google.golang.org/grpc 2 | 3 | go 1.11 4 | 5 | require ( 6 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473 7 | github.com/envoyproxy/protoc-gen-validate v0.1.0 8 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b 9 | github.com/golang/mock v1.1.1 10 | github.com/golang/protobuf v1.3.2 11 | github.com/google/go-cmp v0.2.0 12 | golang.org/x/net v0.0.0-20190311183353-d8887717615a 13 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be 14 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a 15 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 16 | ) 17 | -------------------------------------------------------------------------------- /ansible/roles/flannel/templates/flanneld.j2: -------------------------------------------------------------------------------- 1 | # Flanneld configuration options 2 | 3 | # etcd url location. Point this to the server where etcd runs 4 | FLANNEL_ETCD="{% for node in groups['etcd'] %}http://{{ node }}:2379{% if not loop.last %},{% endif %}{% endfor %}" 5 | 6 | # etcd config key. This is the configuration key that flannel queries 7 | # For address range assignment 8 | FLANNEL_ETCD_KEY="/{{ cluster_name }}/network" 9 | 10 | # Any additional options that you want to pass 11 | # By default, we just add a good guess for the network interface on Vbox. Otherwise, Flannel will probably make the right guess. 12 | FLANNEL_OPTIONS="{{ flannel_opts | default('') }}" 13 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/BurntSushi/toml/encoding_types.go: -------------------------------------------------------------------------------- 1 | // +build go1.2 2 | 3 | package toml 4 | 5 | // In order to support Go 1.1, we define our own TextMarshaler and 6 | // TextUnmarshaler types. For Go 1.2+, we just alias them with the 7 | // standard library interfaces. 8 | 9 | import ( 10 | "encoding" 11 | ) 12 | 13 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 14 | // so that Go 1.1 can be supported. 15 | type TextMarshaler encoding.TextMarshaler 16 | 17 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 18 | // here so that Go 1.1 can be supported. 19 | type TextUnmarshaler encoding.TextUnmarshaler 20 | -------------------------------------------------------------------------------- /sample-jsons/mysql-pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: mysql-pod 5 | labels: 6 | name: mysql-pod 7 | context: docker-k8s-lab 8 | spec: 9 | containers: 10 | - 11 | name: mysql 12 | image: mysql:latest 13 | env: 14 | - 15 | name: "MYSQL_USER" 16 | value: "mysql" 17 | - 18 | name: "MYSQL_PASSWORD" 19 | value: "mysql" 20 | - 21 | name: "MYSQL_DATABASE" 22 | value: "sample" 23 | - 24 | name: "MYSQL_ROOT_PASSWORD" 25 | value: "supersecret" 26 | ports: 27 | - 28 | containerPort: 3306 29 | -------------------------------------------------------------------------------- /ansible/roles/common/tasks/rpm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: RPM | Determine if firewalld installed 3 | command: "rpm -q firewalld" 4 | register: firewalld_check 5 | changed_when: false 6 | failed_when: false 7 | always_run: yes 8 | 9 | - name: Set the has_firewalld fact 10 | set_fact: 11 | has_firewalld: true 12 | when: firewalld_check.rc == 0 13 | 14 | - name: Determine if iptables-services installed 15 | command: "rpm -q iptables-services" 16 | register: iptables_check 17 | changed_when: false 18 | failed_when: false 19 | always_run: yes 20 | 21 | - name: Set the has_iptables fact 22 | set_fact: 23 | has_iptables: true 24 | when: iptables_check.rc == 0 25 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/imdario/mergo/.gitignore: -------------------------------------------------------------------------------- 1 | #### joe made this: http://goel.io/joe 2 | 3 | #### go #### 4 | # Binaries for programs and plugins 5 | *.exe 6 | *.dll 7 | *.so 8 | *.dylib 9 | 10 | # Test binary, build with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 17 | .glide/ 18 | 19 | #### vim #### 20 | # Swap 21 | [._]*.s[a-v][a-z] 22 | [._]*.sw[a-p] 23 | [._]s[a-v][a-z] 24 | [._]sw[a-p] 25 | 26 | # Session 27 | Session.vim 28 | 29 | # Temporary 30 | .netrwhist 31 | *~ 32 | # Auto-generated tag files 33 | tags 34 | -------------------------------------------------------------------------------- /ansible/roles/kubernetes-addons/tasks/cluster-monitoring.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: MONITORING | Assures {{ kube_config_dir }}/addons/cluster-monitoring dir exists 3 | file: path={{ kube_addons_dir }}/cluster-monitoring state=directory 4 | 5 | - name: MONITORING | Install template from converted saltfile 6 | template: 7 | args: 8 | src: "cluster-monitoring/{{ item }}.j2" 9 | dest: "{{ kube_addons_dir }}/cluster-monitoring/{{ item }}" 10 | mode: 0644 11 | owner: root 12 | group: root 13 | with_items: 14 | - grafana-service.yaml 15 | - heapster-controller.yaml 16 | - heapster-service.yaml 17 | - influxdb-grafana-controller.yaml 18 | - influxdb-service.yaml 19 | -------------------------------------------------------------------------------- /ansible/roles/flannel/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Prepare and write Flannel configuration to etcd 3 | include: config.yml 4 | 5 | - name: Install Flannel 6 | include: client.yml 7 | when: inventory_hostname in groups['masters'] + groups['nodes'] 8 | 9 | - include: ubuntu.yml 10 | when: ansible_distribution == 'Ubuntu' 11 | 12 | - include: firewalld.yml 13 | when: has_firewalld 14 | 15 | - include: iptables.yml 16 | when: not has_firewalld and has_iptables 17 | 18 | - name: Enable flannel 19 | service: name=flanneld enabled=yes 20 | 21 | - name: Start flannel 22 | service: name=flanneld state=started 23 | register: flannel_started 24 | notify: 25 | - restart docker 26 | -------------------------------------------------------------------------------- /ansible/roles/master/tasks/install_rpms.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Set a list of kube master binaries to download 3 | set_fact: 4 | kube_rpms: "{{ kube_master_rpms }}" 5 | 6 | - name: Extend the list of kube master binaries with kubelet 7 | set_fact: 8 | kube_rpms: "{{ kube_master_rpms }} kubernetes-node" 9 | when: networking == 'opencontrail' 10 | 11 | - name: Install kubernetes distribution rpms 12 | yum: name={{ kube_rpm_url_base }}/{{ item }}-{{ kube_rpm_url_sufix }} 13 | with_items: 14 | - "{{ kube_rpms }}" 15 | environment: 16 | http_proxy: "{{ http_proxy|default('') }}" 17 | https_proxy: "{{ https_proxy|default('') }}" 18 | no_proxy: "{{ no_proxy|default('') }}" 19 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/gateway-ubuntu.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Interface configuration file 3 | template: src=gateway.cfg.j2 dest=/etc/network/interfaces.d/{{ item }}.cfg 4 | with_items: 5 | - gateway0 6 | - gateway1 7 | 8 | - name: Activate gateway0 9 | command: ifup gateway0 10 | 11 | - name: Activate gateway1 12 | command: ifup gateway1 13 | 14 | - name: Install upstart configuration file 15 | copy: 16 | src: contrail-vrouter-agent.upstart 17 | dest: /etc/init/contrail-vrouter-agent.conf 18 | 19 | - name: Create bridge sysvinit via upstart-job 20 | file: 21 | src: /lib/init/upstart-job 22 | dest: /etc/init.d/contrail-vrouter-agent 23 | state: link 24 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/Dockerfile.debian.j2: -------------------------------------------------------------------------------- 1 | FROM {{ ansible_distribution | lower }}:{{ ansible_distribution_version }} 2 | RUN apt-get update 3 | RUN {{ ansible_pkg_mgr }} install -y git make 4 | RUN {{ ansible_pkg_mgr }} install -y automake flex bison gcc g++ scons linux-headers-{{ ansible_kernel }} libboost-dev libxml2-dev 5 | RUN mkdir -p src/vrouter 6 | WORKDIR src/vrouter 7 | RUN git clone -b R2.20 https://github.com/Juniper/contrail-vrouter vrouter 8 | RUN mkdir tools 9 | RUN (cd tools && git clone https://github.com/Juniper/contrail-build build) 10 | RUN (cd tools && git clone -b R2.20 https://github.com/Juniper/contrail-sandesh sandesh) 11 | RUN cp tools/build/SConstruct . 12 | 13 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/tasks/vrouter-redhat.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Interface up/down scripts 3 | copy: src={{ item }} dest=/etc/sysconfig/network-scripts mode=755 4 | with_items: 5 | - ifup-vhost 6 | - ifdown-vhost 7 | 8 | - name: Interface configuration file (physical) 9 | template: src=ifcfg-eth.j2 dest=/etc/sysconfig/network-scripts/ifcfg-{{ opencontrail_interface }} 10 | notify: 11 | - Bounce physical interface 12 | 13 | - name: Interface configuration file (vhost0) 14 | template: src=ifcfg-vhost0.j2 dest=/etc/sysconfig/network-scripts/ifcfg-vhost0 15 | notify: 16 | - Bounce vhost0 interface 17 | 18 | - name: Enable vhost0 interface 19 | command: ifup vhost0 20 | 21 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/Dockerfile.redhat.j2: -------------------------------------------------------------------------------- 1 | FROM {{ ansible_distribution | lower }}:{{ ansible_distribution_major_version }} 2 | RUN {{ ansible_pkg_mgr }} install -y git make 3 | RUN {{ ansible_pkg_mgr }} install -y automake flex bison gcc gcc-c++ boost boost-devel scons kernel-devel-{{ ansible_kernel }} libxml2-devel python-lxml 4 | RUN mkdir -p src/vrouter 5 | WORKDIR src/vrouter 6 | RUN git clone -b R2.20 https://github.com/Juniper/contrail-vrouter vrouter 7 | RUN mkdir tools 8 | RUN (cd tools && git clone https://github.com/Juniper/contrail-build build) 9 | RUN (cd tools && git clone -b R2.20 https://github.com/Juniper/contrail-sandesh sandesh) 10 | RUN cp tools/build/SConstruct . 11 | 12 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo,386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /ansible/roles/opencontrail/templates/gateway.cfg.j2: -------------------------------------------------------------------------------- 1 | auto {{ item }} 2 | iface {{ item }} inet static 3 | pre-up modprobe vrouter 4 | pre-up ip link add name {{ item }} type vhost 5 | pre-up ip link set {{ item }} address 00:00:5e:00:01:00 6 | {% if item == "gateway0" and opencontrail_public_subnet is defined %} 7 | up ip route add {{ opencontrail_public_subnet }} dev gateway0 8 | {% endif %} 9 | {% if item == "gateway1" %} 10 | up ip route add {{ kube_service_addresses }} dev gateway1 11 | {% endif %} 12 | address 0.0.0.0 13 | post-down vif --list | awk '/^vif.*OS: {{ item }}/ {split($1, arr, "\/"); print arr[2];}' | xargs vif --delete 14 | post-down ip link delete {{ item }} 15 | 16 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/golang.org/x/sys/unix/fcntl_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/k8s.io/klog/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Committee to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | dims 14 | thockin 15 | justinsb 16 | tallclair 17 | piosz 18 | brancz 19 | DirectXMan12 20 | lavalamp 21 | -------------------------------------------------------------------------------- /ansible/roles/docker/tasks/apt-docker-install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install GPG key 3 | command: apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 {% if http_proxy is defined -%}--keyserver-options http-proxy={{ http_proxy }} {% endif -%} --recv-keys 58118E89F3A912897C070ADBF76221572C52609D 4 | 5 | - name: Configure apt repository 6 | template: src="docker.list.j2" dest="/etc/apt/sources.list.d/docker.list" 7 | register: add_apt_source_docker 8 | 9 | - name: Update repository information 10 | command: apt-get update 11 | when: add_apt_source_docker.changed 12 | 13 | - name: Install docker engine 14 | action: "{{ ansible_pkg_mgr }}" 15 | args: 16 | name: docker-engine 17 | state: latest 18 | -------------------------------------------------------------------------------- /.zuul.yaml: -------------------------------------------------------------------------------- 1 | - project: 2 | templates: 3 | - golang-jobs 4 | check: 5 | jobs: 6 | - golang-lint 7 | - kubemon-build-image 8 | gate: 9 | jobs: 10 | - golang-lint 11 | - kubemon-build-image 12 | - job: 13 | name: kubemon-build-image 14 | parent: nuage-build-docker-image 15 | vars: 16 | zuul_work_dir: "{{ ansible_user_dir }}/src/github.com/{{ zuul.project.name }}" 17 | container_command: docker 18 | docker_images: 19 | - context: nuagekubemon 20 | dockerfile: Dockerfile 21 | repository: nuage/monitor 22 | go_task: make 23 | go_context: nuagekubemon 24 | go_makefile: scripts/Makefile 25 | -------------------------------------------------------------------------------- /ansible/roles/docker/tasks/install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - include: debian-install.yml 3 | when: ansible_distribution == "Debian" and docker_source_type == "package-manager" 4 | 5 | - include: apt-docker-install.yml 6 | when: ansible_distribution == "Ubuntu" and docker_source_type == "package-manager" 7 | 8 | - include: generic-install.yml 9 | when: ansible_distribution != "Debian" and ansible_distribution != "Ubuntu" and not is_coreos and docker_source_type == "package-manager" 10 | 11 | - include: coreos.yml 12 | when: is_coreos 13 | 14 | - include: custom-repo-install.yml 15 | when: docker_source_type == "custom-repository" 16 | 17 | - include: install-rpms.yml 18 | when: docker_source_type == "distribution-rpm" 19 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/modern-go/concurrent/executor.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import "context" 4 | 5 | // Executor replace go keyword to start a new goroutine 6 | // the goroutine should cancel itself if the context passed in has been cancelled 7 | // the goroutine started by the executor, is owned by the executor 8 | // we can cancel all executors owned by the executor just by stop the executor itself 9 | // however Executor interface does not Stop method, the one starting and owning executor 10 | // should use the concrete type of executor, instead of this interface. 11 | type Executor interface { 12 | // Go starts a new goroutine controlled by the context 13 | Go(handler func(ctx context.Context)) 14 | } 15 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/github.com/onsi/gomega/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/onsi/gomega 2 | 3 | require ( 4 | github.com/fsnotify/fsnotify v1.4.7 // indirect 5 | github.com/golang/protobuf v1.2.0 6 | github.com/hpcloud/tail v1.0.0 // indirect 7 | github.com/onsi/ginkgo v1.6.0 8 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd 9 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f // indirect 10 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e // indirect 11 | golang.org/x/text v0.3.0 // indirect 12 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 13 | gopkg.in/fsnotify.v1 v1.4.7 // indirect 14 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect 15 | gopkg.in/yaml.v2 v2.2.4 16 | ) 17 | 18 | -------------------------------------------------------------------------------- /nuagekubemon/vendor/google.golang.org/appengine/internal/base/api_base.proto: -------------------------------------------------------------------------------- 1 | // Built-in base types for API calls. Primarily useful as return types. 2 | 3 | syntax = "proto2"; 4 | option go_package = "base"; 5 | 6 | package appengine.base; 7 | 8 | message StringProto { 9 | required string value = 1; 10 | } 11 | 12 | message Integer32Proto { 13 | required int32 value = 1; 14 | } 15 | 16 | message Integer64Proto { 17 | required int64 value = 1; 18 | } 19 | 20 | message BoolProto { 21 | required bool value = 1; 22 | } 23 | 24 | message DoubleProto { 25 | required double value = 1; 26 | } 27 | 28 | message BytesProto { 29 | required bytes value = 1 [ctype=CORD]; 30 | } 31 | 32 | message VoidProto { 33 | } 34 | --------------------------------------------------------------------------------