This file contains 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
BIOS_version=foo | |
DISTRIBUTION=foo | |
IPV4_ADDRESS=foo | |
HOSTNAME=foo | |
FQDN=faq |
This file contains 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
#!/bin/bash | |
# This is my-aliases.sh | |
echo 'alias events="kubectl get events --sort-by=.lastTimestamp"' >> ~/.bashrc | |
echo 'alias kexec="kubectl exec -it curl -- /bin/sh"' >> ~/.bashrc | |
echo 'alias kurl="kubectl run -it curl --image=curlimages/curl -- /bin/sh"' >> ~/.bashrc | |
echo 'alias ns="kubens"' >> ~/.bashrc | |
echo 'alias cc="kubectx"' >> ~/.bashrc | |
echo 'alias trigger_ci="git commit --allow-empty -m \"trigger CI\" && git push"' >> ~/.bashrc |
This file contains 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: v1 | |
kind: Pod | |
metadata: | |
labels: | |
run: guaranteed | |
name: guaranteed | |
spec: | |
containers: | |
- image: busybox | |
name: someotherapp |
This file contains 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: sample-app | |
labels: | |
app: sample-app | |
spec: | |
selector: | |
matchLabels: | |
app: sample-app |
This file contains 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
#!/bin/env bash | |
#credit to https://adolfi.dev/blog/tls-kubernetes/ | |
openssl pkcs12 -in pfx-filename.pfx -nocerts -out key-filename.key | |
openssl rsa -in key-filename.key -out key-filename-decrypted.key | |
openssl pkcs12 -in pfx-filename.pfx -nokeys -out crt-filename.crt | |
kubectl create secret tls tls-secret --cert crt-filename.crt --key key-filename-decrypted.key |
This file contains 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: jwks | |
namespace: ambassador | |
labels: | |
app: jwks | |
spec: | |
selector: | |
matchLabels: |
This file contains 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
#!/bin/env bash | |
FILE1=".creds/pub.json" | |
if [ -f "$FILE1" ]; then | |
echo "key pair exists, skipping key generation" | |
else | |
echo "Create public key and private key" | |
step-cli crypto jwk create ./creds/pub.json ./creds/private.json --kty RSA | |
echo "Create keyset" | |
cat ./creds/pub.json | step-cli crypto jwk keyset add ./creds/keys.json | |
sed -i 's/^/ /' ./creds/keys.json |
This file contains 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
#!/bin/env bash | |
#run this script in your git project | |
URL=$(cat .git/config | grep url | cut -d\ -f3) | |
rm -rf .git | |
git init | |
git add . | |
git commit -m "Initial commit" | |
git remote add origin $URL | |
git push -u --force origin main |
This file contains 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
#!/bin/env bash | |
#install my basic tools | |
sudo apt install tree vim | |
mkdir -p ~/repos ~/tools ~/testenv | |
#configure vim for yaml | |
echo "set ts=2 sw=2" > ~/.vimrc | |
This file contains 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
serviceMonitor: | |
enabled: true | |
defaults: | |
additionalMetricsRelabels: | |
release: blackbox-exporter-prometheus-blackbox-exporter:9115 | |
interval: 30s | |
scrapeTimeout: 30s | |
module: http_2xx | |
scheme: http | |
tlsConfig: {} |
NewerOlder