39 lines
1.2 KiB
Bash
Executable File
39 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2020 Google LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
set -ex
|
|
|
|
# conntrack is required for minikube 1.19 and higher for none driver
|
|
if ! conntrack --version &>/dev/null; then
|
|
echo "WARNING: No contrack is not installed"
|
|
sudo apt-get update -qq
|
|
sudo apt-get -qq -y install conntrack
|
|
fi
|
|
|
|
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
|
|
chmod +x minikube
|
|
sudo mv minikube /usr/local/bin/
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y liblz4-tool
|
|
cat /proc/cpuinfo
|
|
|
|
minikube start --vm-driver=none --force
|
|
minikube status
|
|
minikube addons enable registry
|
|
kubectl cluster-info
|
|
|
|
kubectl port-forward --namespace kube-system service/registry 5000:80 &
|