Skip to content

Instantly share code, notes, and snippets.

View red-avtovo's full-sized avatar
⛩️
Zen

Aleksandr red-avtovo

⛩️
Zen
View GitHub Profile
@red-avtovo
red-avtovo / vault_certs.sh
Created November 22, 2020 21:21
Get main info about Vault certs
#!/bin/bash
VAULT_URL="http://localhost:8200/v1"
TOKEN="s.BfRUIKOyrWtVIJX0rBN1AiSW"
res=$(curl -s \
--header "X-Vault-Token: $TOKEN" \
--request LIST \
$VAULT_URL/pki/certs)
keys=$(echo $res | jq -r '.data.keys[]')
@red-avtovo
red-avtovo / k8s_services.md
Last active August 24, 2021 07:40
K8s setup
Service Implementation
K8s K3s (lightweight, no need to use docker -> containerd by default)
Ingress Controller (Reverse proxy) Traefik Ingress Controller (preinstalled with k3s by default, could be disabled)
Distributed File storage Longhorn
Canary deployment stackset-controller
Config editor / Web IDE Code server
Lets Encrypt Certificates cert manager
DNS propagation external-dns
K8s cli k9s
@red-avtovo
red-avtovo / deployment.yaml
Last active December 6, 2024 22:03
Marzban deployement
apiVersion: apps/v1
kind: Deployment
metadata:
name: marzban
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels: