This is the code you need to align images to the left:
| #!/bin/sh | |
| node=${1} | |
| if [ -n "${node}" ]; then | |
| shift | |
| nodeName=$(kubectl get node ${node} -o template --template='{{index .metadata.labels "kubernetes.io/hostname"}}') || exit 1 | |
| nodeSelector='"nodeSelector": { "kubernetes.io/hostname": "'${nodeName:?}'" },' | |
| podName=${USER+${USER}-}sudo-${node} | |
| else | |
| nodeSelector="" | |
| podName=${USER+${USER}-}sudo |
| { | |
| "AuthParameters" : { | |
| "USERNAME" : "[email protected]", | |
| "PASSWORD" : "mysecret" | |
| }, | |
| "AuthFlow" : "USER_PASSWORD_AUTH", | |
| "ClientId" : "9..............." | |
| } |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| "k8s.io/client-go/kubernetes" | |
| "k8s.io/client-go/rest" | |
| "k8s.io/client-go/tools/clientcmd" |
| #!/bin/bash -xe | |
| ## SET BASIC VARIABLES | |
| EKS_CLUSTER="dev-cluster" | |
| IAM_ROLE_NAME=eksctl-$EKS_CLUSTER-iamserviceaccount-role | |
| EXTERNAL_SECRETS_POLICY="kube-external-secrets" | |
| #### CREATE POLICY TO ACCESS SSM/Secrets Manager | |
| cat << EOF > policy.json | |
| { |
| pragma solidity ^0.4.25; | |
| contract MappingTest { | |
| mapping(uint=>address) public addresses; | |
| uint addressRegistryCount; | |
| function set(address userAddress) public{ | |
| addresses[addressRegistryCount] = userAddress; | |
| addressRegistryCount++; | |
| } |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):
Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:
curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: cleaner | |
| --- | |
| kind: Role | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: cleaner |