git checkout master
git pull --no-edit origin $(git rev-parse --abbrev-ref HEAD) --rebase --ff-only
git checkout -b new-feature
git commit ...
...
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 |
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 |
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: |