mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
11 lines
298 B
Bash
11 lines
298 B
Bash
#!/bin/bash
|
|
|
|
export KUBECONFIG=~/.kube/vke
|
|
export NS=kube-system
|
|
kubectl apply -f pod.yaml -n $NS
|
|
kubectl wait --for=condition=Ready pod/test -n $NS
|
|
cd ./server && GOARCH=amd64 GOOS=linux go build -o main
|
|
kubectl cp main test:/app/main -n $NS
|
|
rm -fr main
|
|
kubectl port-forward pods/test 1080 -n $NS
|