k3d create --publish 8080:8080 --name testcls1 --workers 3
https://felixwiedmann.de/k3d-manage-k3s-clusters/
---| # from https://www.digitalocean.com/community/tutorials/how-to-install-java-on-centos-and-fedora | |
| # JDK 7 | |
| #------ | |
| # Change to your home directory and download the Oracle Java 7 JDK RPM with these commands: | |
| cd ~ | |
| wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm" | |
| # Then install the RPM with this yum command (if you downloaded a different release, substitute the filename here): | |
| sudo yum localinstall jdk-7u79-linux-x64.rpm |
| # from:https://quicktechnotes.wordpress.com/2017/01/02/how-to-install-mongodb-elasticsearch-and-graylog-on-centos-7/ | |
| # Install EPEL | |
| sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| sudo yum -y install pwgen | |
| sudo yum -y update | |
| # Add mongodb repo. | |
| sudo vi /etc/yum.repos.d/mongodb-org-3.2.repo |
| # from https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7 | |
| sudo yum install epel-release | |
| sudo yum update | |
| sudo yum install nginx | |
| # start nginx | |
| sudo systemctl start nginx | |
| # If you are running a firewall, run the following commands to allow HTTP and HTTPS traffic: |
| echo `date "+%Y-%m-%d-%H-%M-%S"` | |
| # outptut - 2017-05-22-14-38-18 |
| slappasswd -h {SSHA} -s password |
| brew install numpy | |
| brew install scipy | |
| brew install matplotlib | |
| --- | |
| *VirtualEnv* | |
| $ mkvirtualenv ml | |
| $ cd .virtualenvs/ml/ | |
| $ ln -s /usr/local/lib/python2.7/site-packages/{numpy,scipy}* lib/python2.7/site-packages/ | |
| $ workon ml | |
| (ml) $ pip freeze | grep -i numpy |
| # On OS X | |
| $ vi ~/.bash_profile | |
| # Add following for running spark, pyspark, jupyter | |
| #----- | |
| # FOR SPARK | |
| #----- | |
| # | |
| # for PYSPARK |
| # Possibly obsolete: k3d create --name testcls1 --workers 3 | |
| k3d create --name testcls1 --workers 3 --server-arg "--no-deploy=traefik" --server-arg "--no-deploy=servicelb" | |
| # UPDATE: in newer versions onwards, this has evolved to (thanks to comments below): | |
| k3d cluster create --k3s-arg "--no-deploy=traefik@server:*" |
k3d create --publish 8080:8080 --name testcls1 --workers 3
https://felixwiedmann.de/k3d-manage-k3s-clusters/
---#ref https://github.com/rancher/k3d/blob/master/docs/examples.md
In this example, we will deploy a simple nginx webserver deployment and make it accessible via ingress.