Add --allow-privileged=true to:
# kubelet config
sudo vim /var/snap/microk8s/current/args/kubelet
#kube-apiserver config
sudo vim /var/snap/microk8s/current/args/kube-apiserverRestart services:
| #!/usr/bin/env bash | |
| # Run this script from githib: | |
| #bash <(curl -s https://gist.githubusercontent.com/antonfisher/06461c7ac9ba147884222a2cea815fda/raw/77af2d09d7ed517f641fc888d0ff3ff12604d4e5/deploy-minikube-nexentaedge-cluster-on-ubuntu.sh) | |
| # cleanup | |
| #sudo apt remove virtualbox kubectl; sudo rm -rf /usr/local/bin/minikube; rm -rf ~/.minikube | |
| # port forwarding if run inside ubuntu vm (IP - vm ip) | |
| #sudo ssh -L 0.0.0.0:80001:IP:31080 root@IP |
| func waitForTask(id string) (err error) { | |
| done := make(chan error) | |
| timer := time.NewTimer(0) | |
| timeout := time.After(10 * time.Seconds) | |
| go func() { | |
| for { | |
| select { | |
| case <-timeout: | |
| timer.Stop() |
Add --allow-privileged=true to:
# kubelet config
sudo vim /var/snap/microk8s/current/args/kubelet
#kube-apiserver config
sudo vim /var/snap/microk8s/current/args/kube-apiserverRestart services:
| CSS Loaders: | |
| <div class="loader"> | |
| <div class="item item-0"> | |
| <div class="ball"></div> | |
| </div> | |
| <div class="item item-30"> | |
| <div class="ball"></div> | |
| </div> | |
| <div class="item item-60"> | |
| <div class="ball"></div> |
| // | |
| // Usage: | |
| // env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o server server.go && ./server | |
| // Test: | |
| // dd if=/dev/urandom of=./archive.2gb.zip bs=1024KB count=2000 | |
| // time curl --upload-file archive.2gb.zip http://localhost:9001 | |
| // | |
| package main |
| # by defailt mint tests fail on the first failed test case, to change it follow these steps: | |
| git clone [email protected]:minio/minio.git | |
| cd minio/mint | |
| vim mint.sh +194 # comment "break" on string 194 to run all the tests and don't stop on the first fail | |
| docker build --no-cache -t minio/mint:local . -f Dockerfile.dev | |
| docker run \ | |
| --name mint \ | |
| --rm \ | |
| -it \ | |
| -e SERVER_ENDPOINT=10.3.199.254:9000 \ |
| diff --git a/mint/mint.sh b/mint/mint.sh | |
| index 5d9e997..952dc16 100755 | |
| --- a/mint/mint.sh | |
| +++ b/mint/mint.sh | |
| @@ -139,6 +139,7 @@ function main() | |
| export ENABLE_VIRTUAL_STYLE | |
| export GO111MODULE | |
| export GOPROXY | |
| + export BAIL | |
| #!/usr/bin/env bash | |
| # setup: | |
| # $ mkdir -p /tmp/s3 && cd /tmp/s3 | |
| # $ ~/js/nexenta/nef.extra/mc/test.sh 2>&1 | grep --color -E "^\+.+$|$" | |
| set -x; | |
| #set -e; | |
| HOST="1.1.1.1:9000" |