Skip to content

Instantly share code, notes, and snippets.

View kostyrev's full-sized avatar
🇫🇷
Вы что, хотите чтобы было как в Париже?

Aleksandr Kostyrev kostyrev

🇫🇷
Вы что, хотите чтобы было как в Париже?
View GitHub Profile
@kostyrev
kostyrev / debug-kubernetes-vault-integration
Last active June 16, 2023 13:25
debug-kubernetes-vault-integration.md
cat > ~/vault_debug.sh <<'EOF'
#!/usr/bin/env bash
# Usage:
#bash -x ~/vault_debug.sh sumsub https://vault.qa.fasten.cloud kubernetes secret/api/auth/gazprom sumsub-vault
VAULT_ROLE=$1
VAULT_ADDR=$2
VAULT_KUBERNETES_PATH=$3
VAULT_SECRET_PATH=$4
KUBE_SA_NAME=$5
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ws-example
spec:
replicas: 1
template:
metadata:
labels:
app: wseg
rbac:
create: true
controller:
hostNetwork: true
ingressClass: internal
publishService:
enabled: true
rbac:
create: true
controller:
hostNetwork: true
publishService:
enabled: true
updateStrategy:
# ------------------- Dashboard Service Account ------------------- #
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
@kostyrev
kostyrev / external-dns.yaml
Last active January 15, 2018 16:15
external-dns.yaml
logLevel: debug
rbac:
create: true
image:
tag: v0.4.7
extraArgs:
registry: txt
rbac:
create: true
podAnnotations:
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"dedicated", "value":"master"}]'
resources:
limits:
cpu: 100m
memory: 300Mi
@kostyrev
kostyrev / MRs.md
Last active November 15, 2021 08:28
MRs
git checkout master
git pull --no-edit origin $(git rev-parse --abbrev-ref HEAD) --rebase --ff-only
git checkout -b new-feature
git commit ...

...

---
apiVersion: v1
kind: Service
metadata:
name: nginx-echo-headers
labels:
app: nginx-echo-headers
spec:
type: ClusterIP
ports:
---
apiVersion: v1
kind: Service
metadata:
name: nginx-echo-headers
labels:
app: nginx-echo-headers
spec:
type: ClusterIP
ports: