This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
PHP´s magic ::class-constant will not canonical the casing of your imports.
This can lead to hard to debug errors when you a using a case sensitive service PSR-11-locator like Zend\ServiceManager.
namespace FirstNamespace;
class TestClass {}| <?php | |
| namespace AppBundle\Command; | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Output\OutputInterface; | |
| use Symfony\Component\Process\Process; |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
| #cloud-init | |
| # https://docs.chef.io/packages.html#enterprise-linux | |
| # vendor chef-repo to /var/lib/chef with cookbooks in /var/lib/chef/cookbooks | |
| yum_repos: | |
| chef-stable: | |
| name: chef-stable | |
| baseurl: https://packages.chef.io/stable-yum/el/7/\$basearch/ | |
| enabled: true | |
| failovermethod: priority |
| # See also: http://docs.couchdb.org/en/latest/cluster/index.html | |
| # Before you can add nodes to form a cluster, you have to have them listen on a public ip address | |
| # and set up an admin user (use same admin:password for all nodes). | |
| # Do this, once per node: | |
| # If you have installed couchdb in /opt (else change the Path) | |
| cd /opt/couchdb/etc | |
| cp local.ini local.ini.orig | |
| cp vm.args vm.args.orig |
| .host:/vmshared /mnt/vmshared fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0 |
| # Let apache know we're behind a SSL reverse proxy | |
| SetEnvIf X-Forwarded-Proto "https" HTTPS=on | |
| # Redirect to HTTPS | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IFModule> |
| sudo su | |
| echo "core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern | |
| ulimit -c unlimited |