# Pull the necessary images:
docker pull nathanleclaire/curl:latest
docker pull openjdk:8u111-jre-alpine
# Start the controller container, note that it has RW access to the Docker API socket:
docker run \
-ti \
--rm \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "kind": "PodList", | |
| "apiVersion": "v1", | |
| "metadata": { }, | |
| "items": [{ | |
| "metadata": { | |
| "name": "heapster-4637824328-zpckl", "namespace": "kube-system", "uid": "XXXXX-XXXX-XXX-XXXXXXXX", "creationTimestamp": null | |
| }, "spec": { | |
| "containers": [{ | |
| "name": "heapster-nanny", "image": "k8s-gcrio.azureedge.net/addon-resizer@sha256:dcec9a5c2e20b8df19f3e9eeb87d9054a9e94e71479b935d5cfdbede9ce15895", "resources": {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # return all web sites | |
| az resource list --resource-type "Microsoft.Web/sites" --query "[].id" --output tsv | | |
| # query azure for each resource | |
| xargs az resource show --ids | | |
| # define output | |
| jq -r '.[].siteProperties.properties // .[].properties | .enabledHostNames[] // .hostNames | match("^((?!scm).)*$").string' | |
| # return all cloud services | |
| az resource list --resource-type "Microsoft.ClassicCompute/domainNames" --query "[].id" --output tsv | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| email = Paulo.Gomes.uk@gmail.com | |
| name = Paulo Gomes | |
| # signingkey = 08523F6EF8967D22 | |
| [alias] | |
| co = checkout | |
| # cms = commit -S -m | |
| cm = commit -m | |
| d = diff | |
| s = status |
I hereby claim:
- I am pjbgf on github.
- I am pjbgf (https://keybase.io/pjbgf) on keybase.
- I have a public key whose fingerprint is 387B D98F 9325 9940 726E 5044 01AC CE69 9E98 5BDA
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "go.autocompleteUnimportedPackages": true, | |
| "terminal.integrated.shell.linux": "/usr/bin/zsh", | |
| "terminal.integrated.fontFamily": "'Source Code Pro for Powerline', 'monospace', monospace, 'Droid Sans Fallback'", | |
| "editor.fontFamily": "'Source Code Pro for Powerline', 'monospace', monospace, 'Droid Sans Fallback'", | |
| "go.formatTool": "goimports", | |
| "editor.fontSize": 18, | |
| "terminal.integrated.fontSize": 18, | |
| "markdown.preview.fontSize": 18, | |
| "git.enableSmartCommit": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine | |
| ARG KUBECTL_VERSION="1.21.7" | |
| RUN apk add curl | |
| RUN curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \ | |
| curl -LO "https://dl.k8s.io/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256" && \ | |
| echo "$(cat kubectl.sha256) kubectl" | sha256sum -c && \ | |
| install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl |
Enable the use of AppArmor profiles by adding:
annotations:
container.apparmor.security.beta.kubernetes.io/manager: localhost/flux-controllersEnsure that the profiles are installed on all worker nodes, manually or with SPO: https://github.com/kubernetes-sigs/security-profiles-operator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: cilium.io/v2 | |
| kind: CiliumNetworkPolicy | |
| metadata: | |
| name: webhook-strict | |
| namespace: cattle-system | |
| spec: | |
| endpointSelector: | |
| matchLabels: | |
| app: rancher-webhook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package filtered | |
| import ( | |
| "io" | |
| "os" | |
| "time" | |
| "github.com/go-git/go-billy/v5" | |
| ) |