I hereby claim:
- I am so0k on github.
- I am so0k (https://keybase.io/so0k) on keybase.
- I have a public key ASDaffdVrhOLCfx0kMlQsvx-HA8ygWIhW3IpSrvYEFVP6Qo
To claim this, I am signing this object:
Param( | |
[switch]$keepalive | |
) | |
#region script config | |
$dockerhost = "localdocker" | |
$User = "docker" | |
$PWord = (new-object System.Security.SecureString) #this is how you define blank password | |
$keyfile = "C:\Path\To\keys" | |
#endregion |
[Unit] | |
Description=Turn on swap | |
[Service] | |
Type=oneshot | |
Environment="SWAPFILE=/4GiB.swap" | |
RemainAfterExit=true | |
ExecStartPre=/usr/bin/touch ${SWAPFILE} | |
ExecStartPre=/usr/bin/chattr -C ${SWAPFILE} | |
ExecStartPre=/usr/bin/fallocate -l 4096m ${SWAPFILE} |
@echo off | |
:: BatchGotAdmin | |
:------------------------------------- | |
REM --> Check for permissions | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
REM --> If error flag set, we do not have admin. | |
if '%errorlevel%' NEQ '0' ( | |
echo Requesting administrative privileges... |
unbindall | |
bind "0" "slot10" | |
bind "1" "slot1" | |
bind "2" "slot2" | |
bind "3" "slot3" | |
bind "4" "slot4" | |
bind "5" "slot5" | |
bind "9" "slot9" | |
bind "a" "+duck" | |
bind "b" "slot8" |
I hereby claim:
To claim this, I am signing this object:
$ minikube version
minikube version: v0.14.0
$ minikube start
Starting local Kubernetes cluster...
E0108 18:19:32.625802 27742 start.go:94] Error starting host: Temporary Error: Error configuring auth on host: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded.
Driven by yaml file which defines the assembly we want to create:
Use netcat to wait until port 8080 is open
while ! nc -z localhost 8080; do sleep 0.1; done; echo test
in a separate session open port 8080 (using netcat):
nc -l 8080
import yaml | |
print_format="| {parameter:<40}| | {default:<50}|" | |
def walk_dict(d,keys=[],depth=0): | |
for k,v in sorted(d.items(),key=lambda x: x[0]): | |
keys.append(k) | |
if isinstance(v,dict): | |
walk_dict(v,keys,depth+1) | |
else: | |
print(print_format.format(parameter='`{0}`'.format(".".join(keys)),default='`{0}`'.format(v))) |
Note: Use the excellent helm chart - ohaiwalt/cog-helm to get up quickly on k8s
Follow the guide below to understand the inner workings a bit better.
We will be creating 1 deployment for the cog server and 1 deployment for the relay server.
We chose to run Postgres outside the Kubernetes cluster and provide instructions how to expose all service ports on a single ELB.