start new:
tmux
start new with session name:
tmux new -s myname
Per https://blog.golang.org/debugging-what-you-deploy
Make sure to compile your Go program with inlining and optimizations disabled
Also this is targetted towards delve
go build -gcflags "all=-N -l" /my/go/program
(delve on the commandline does this automatically, not sure if Goland does)
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| annotations: | |
| linkerd.io/created-by: linkerd/cli stable-2.6.1 | |
| labels: | |
| linkerd.io/control-plane-component: prometheus | |
| linkerd.io/control-plane-ns: linkerd | |
| name: linkerd-prometheus-config | |
| namespace: linkerd |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Moby 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
| #!/bin/bash | |
| #set -x | |
| #set -e | |
| name='rio' | |
| k3d delete --name=$name | |
| k3d create -n $name --image rancher/k3s:v1.0.0 --publish 80:80 --publish 443:443 --publish 9443:9443 --publish 9080:9080 \ | |
| --server-arg --no-deploy=traefik | |
| declare -i i; i=0 | |
| until k3d get-kubeconfig --name='rio' | |
| do |
| #!/bin/bash | |
| #set -x | |
| #set -e | |
| k3d delete --name='k3s-default' | |
| k3d create --workers 1 --image rancher/k3s:v0.8.1 && | |
| declare -i i; i=0 | |
| until k3d get-kubeconfig --name='k3s-default' | |
| do | |
| if (( i > 20 )); then | |
| break |
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.
| #!/bin/bash | |
| docker run -d -p 80:80 -p 443:443 --name rancher-server rancher/rancher:latest | |
| while ! curl -k https://localhost/ping; do sleep 3; done | |
| # Login | |
| LOGINRESPONSE=`curl -s 'https://127.0.0.1/v3-public/localProviders/local?action=login' -H 'content-type: application/json' --data-binary '{"username":"admin","password":"admin"}' --insecure` | |
| LOGINTOKEN=`echo $LOGINRESPONSE | jq -r .token` | |
| # Change password |
| --- | |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: 'Amazon EKS - Node Group' | |
| Parameters: | |
| KeyName: | |
| Description: The EC2 Key Pair to allow SSH access to the instances | |
| Type: AWS::EC2::KeyPair::KeyName |