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
# SSH into the node where the failing VMs are running and run these commands: | |
pvecm updatecerts --force | |
systemctl restart pvedaemon.service | |
systemctl restart pveproxy.service |
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
env: | |
{{- range $secret := .Values.secrets }} | |
{{- if eq $secret.type "env" }} | |
{{- range $key := $secret.keys }} | |
{{- $envPrefix := $secret.prefix | default "" | upper }} | |
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }} | |
- name: {{ $envPrefix }}{{ $envKey }} | |
valueFrom: | |
secretKeyRef: | |
name: {{ $secret.name }} |
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
# syntax = docker/dockerfile:1.4 | |
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9-slim AS builder | |
WORKDIR /app | |
COPY requirements.txt ./ | |
RUN --mount=type=cache,target=/root/.cache/pip \ | |
pip install -r requirements.txt |
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
{ | |
"extd": { | |
"scope": "makefile,make", | |
"prefix": "extd", | |
"body": [ | |
"debug: # Show Chrome-dev tools", | |
" docker extension dev debug $(IMAGE):$(TAG)", | |
"debug-reset: # Reset Chrome-dev tools", | |
" docker extension dev reset $(IMAGE):$(TAG)", | |
"debug-ui: # Set UI hot reload", |
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
curl -k -X GET \ | |
-H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
https://$KUBERNETES_PORT_443_TCP_ADDR:$KUBERNETES_SERVICE_PORT_HTTPS |
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
# knife cheat | |
## Search Examples | |
knife search "name:ip*" | |
knife search "platform:ubuntu*" | |
knife search "platform:*" -a macaddress | |
knife search "platform:ubuntu*" -a uptime | |
knife search "platform:ubuntu*" -a virtualization.system | |
knife search "platform:ubuntu*" -a network.default_gateway |
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
# Backup DB | |
docker run \ | |
--rm \ | |
--link running_mongo:mongo \ | |
-v /data/mongo/backup:/backup \ | |
mongo \ | |
bash -c ‘mongodump --out /backup --host $MONGO_PORT_27017_TCP_ADDR’ | |
# Download the dump | |
scp -r USER@REMOTE:/data/mongo/backup ./backup | |
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
- name: oauth2-proxy | |
image: a5huynh/oauth2_proxy | |
args: | |
- "-upstream=http://localhost:5601/" | |
- "-provider=github" | |
- "-cookie-secure=true" | |
- "-cookie-expire=168h0m" | |
- "-cookie-refresh=60m" | |
- "-cookie-secret=SECRET COOKIE" | |
- "-cookie-domain=kibana.fromatob.com" |
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
curl --data-binary "@mychart-0.1.0.tgz" http://localhost:8080/api/charts |
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
minikube start --vm-driver=xhyve --container-runtime=docker --show-libmachine-logs --v=10 --alsologtostderr --cpus 4 --memory 8192 |