Last active
February 23, 2018 10:20
-
-
Save shashidharatd/6b48650b024656ef1ab0605ff456f445 to your computer and use it in GitHub Desktop.
Bringup K8s Federation control plane on local and do e2e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Bringup local cluster | |
# export API_HOST_IP=172.17.0.1 | |
# cd $GOPATH/src/k8s.io/kubernetes | |
# ./hack/local-up-cluster.sh | |
1.1 Create kubecfg file | |
# cluster/kubectl.sh config set-cluster federation-local --server=https://172.17.0.1:6443 --certificate-authority=/var/run/kubernetes/server-ca.crt --embed-certs=true | |
# cluster/kubectl.sh config set-credentials myself --client-key=/var/run/kubernetes/client-admin.key --client-certificate=/var/run/kubernetes/client-admin.crt --embed-certs=true | |
# cluster/kubectl.sh config set-context federation-local --cluster=federation-local --user=myself | |
# cluster/kubectl.sh config use-context federation-local | |
2. Build & Push fcp image registry | |
# cd $GOPATH/src/k8s.io/federation | |
# make quick-release | |
# docker load -i _output/release-images/amd64/fcp-amd64.tar | |
# docker tag gcr.io/google_containers/fcp-amd64:<tag> shashidharatd//fcp-amd64:<tag> | |
# docker push shashidharatd//fcp-amd64:<tag> | |
3. Bring up fcp | |
# _output/dockerized/bin/linux/amd64/kubefed init myfed --host-cluster-context=federation-local --api-server-service-type=NodePort --image=shashidharatd/fcp-amd64:<tag> --controllermanager-arg-overrides="--controllers=service-dns=false" --dns-provider=dummy --etcd-persistent-storage=false | |
4. Join local cluster to federation | |
# _output/dockerized/bin/linux/amd64/kubefed join federation-local --host-cluster-context=federation-local --context=myfed | |
5. Run select e2e | |
# _output/dockerized/bin/linux/amd64/e2e.test --kubeconfig /root/.kube/config --federated-kube-context myfed -ginkgo.focus="\[Feature:Federation\].Features.Preferences" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment