Skip to content

Commit

Permalink
Patch kind config
Browse files Browse the repository at this point in the history
Signed-off-by: chrismark <chrismarkou92@gmail.com>
  • Loading branch information
ChrsMark committed Jul 7, 2021
1 parent 9c87056 commit f3bcc01
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 14 additions & 1 deletion .ci/scripts/kind-setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
#!/usr/bin/env bash
set -exuo pipefail

kind create cluster --image kindest/node:${K8S_VERSION}
kind create cluster --image kindest/node:${K8S_VERSION} --config - <<EOF
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: ClusterConfiguration
scheduler:
extraArgs:
bind-address: "0.0.0.0"
port: "10251"
secure-port: "10259"
EOF
kubectl cluster-info
4 changes: 0 additions & 4 deletions metricbeat/module/kubernetes/test/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,4 @@ func GetSchedulerConfig(t *testing.T, metricSetName string) map[string]interface
"host": "${NODE_NAME}",
"hosts": []string{"localhost:10251"},
}
//hosts:
// - https://0.0.0.0:10257
//bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
// ssl.verification_mode: "none"
}

0 comments on commit f3bcc01

Please sign in to comment.