kne
kne copied to clipboard
Add external cluster type
The external
cluster type will assume the cluster already exists. The external
cluster will not be managed by KNE setup/teardown. The only implemented method is the cluster health check.
ex.
cluster:
kind: External
ingress:
kind: MetalLB
spec:
manifests: ../../manifests/metallb
ip_count: 100
cni:
kind: Meshnet
spec:
manifests: ../../manifests/meshnet
controllers:
- kind: IxiaTG
spec:
manifests: ../../manifests/controllers/ixiatg
- kind: SRLinux
spec:
manifests: ../../manifests/controllers/srlinux
- kind: CEOSLab
spec:
manifests: ../../manifests/controllers/ceoslab
$ ./kne_cli deploy ../deploy/kne/kind-bridge.yaml
INFO[0000] Reading deployment config: "/home/user/kne/deploy/kne/kind-bridge.yaml"
INFO[0000] Using external cluster
INFO[0000] Deploying cluster...
INFO[0000] Deploy is a no-op for the external cluster type
INFO[0000] Cluster deployed
Kubernetes control plane is running at https://10.128.0.23:6443
CoreDNS is running at https://10.128.0.23:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
INFO[0000] Cluster healthy
INFO[0000] Checking kubectl versions.
INFO[0000] Found k8s versions:
clientVersion:
buildDate: "2022-10-12T10:57:26Z"
compiler: gc
gitCommit: 434bfd82814af038ad94d62ebe59b133fcb50506
gitTreeState: clean
gitVersion: v1.25.3
goVersion: go1.19.2
major: "1"
minor: "25"
platform: linux/amd64
kustomizeVersion: v4.5.7
serverVersion:
buildDate: "2022-10-12T10:49:09Z"
compiler: gc
gitCommit: 434bfd82814af038ad94d62ebe59b133fcb50506
gitTreeState: clean
gitVersion: v1.25.3
goVersion: go1.19.2
major: "1"
minor: "25"
platform: linux/amd64
INFO[0000] Deploying ingress...
...
Pull Request Test Coverage Report for Build 3292016872
- 2 of 30 (6.67%) changed or added relevant lines in 3 files are covered.
- 1 unchanged line in 1 file lost coverage.
- Overall coverage decreased (-0.4%) to 57.549%
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
---|---|---|---|
controller/server/main.go | 0 | 2 | 0.0% |
cmd/deploy/deploy.go | 2 | 8 | 25.0% |
deploy/deploy.go | 0 | 20 | 0.0% |
<!-- | Total: | 2 | 30 |
Files with Coverage Reduction | New Missed Lines | % |
---|---|---|
cmd/deploy/deploy.go | 1 | 61.79% |
<!-- | Total: | 1 |
Totals | |
---|---|
Change from base Build 3267338622: | -0.4% |
Covered Lines: | 2329 |
Relevant Lines: | 4047 |
💛 - Coveralls
/gcbrun
https://github.com/openconfig/kne/issues/225
/gcbrun
/gcbrun