Skip to content

Instantly share code, notes, and snippets.

View jkremser's full-sized avatar
💭
🇺🇦 ❤️

Jirka Kremser jkremser

💭
🇺🇦 ❤️
View GitHub Profile

install metric server to kind

curl -sL https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml | sed '/- args:/a \ \ \ \ \ \ \ \ - --kubelet-insecure-tls' | k apply -f -
@jkremser
jkremser / cluster-list.yaml
Last active October 17, 2023 14:47
cluster api tui
kind: ConfigMap
metadata:
labels:
app-operator.giantswarm.io/watching: "true"
name: $CLUSTER-user-values
namespace: org-$ORG
apiVersion: v1
data:
values: |
baseDomain: test.gigantic.io
@jkremser
jkremser / debug_helm.md
Last active June 1, 2023 08:56
debug helm
helm template --debug .
{{- . | mustToPrettyJson | printf "\nThe JSON output of the dumped var is: \n%s" | fail }}

comments:

@jkremser
jkremser / demo.md
Last active April 13, 2023 10:37
kubecon-booth-demo.md
export CLUSTER=hello-kubecon

Provision Cluster

cat vsphere/cluster-list.yaml | envsubst | k apply -f -
---
# Source: cluster-vsphere/templates/cluster.yaml
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: gjirk25
namespace: default
annotations:
cluster.giantswarm.io/description: "test cluster"
labels:
.PHONY: clean-vcd
clean-vcd:
ifndef INSTALLATION
$(error INSTALLATION is undefined, e.g. "gs-foo")
endif
-kind delete cluster --name=kind-mc-initial-$(INSTALLATION)
-cd-cli delete vapp $(INSTALLATION) -y
-cd-cli delete lbps $(shell cd-cli get lbps | grep $(INSTALLATION)) --cascade -y
.PHONY: clean-vcd
clean-vcd:
ifndef INSTALLATION
$(error INSTALLATION is undefined, e.g. "gs-foo")
endif
-kind delete cluster --name=kind-mc-initial-$(INSTALLATION)
-cd-cli delete vapp $(INSTALLATION) -y
-cd-cli delete lbps $(shell cd-cli get lbps | grep $(INSTALLATION)) --cascade -y
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM4cvZ01fLmO9cJbWUj7sfF+NhECgy+Cl0bazSrZX7sU vault-ca@vault.operations.giantswarm.io
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII/AViZ3C661ILLoFlfkbn7y3gKBFINNffnZpMB9WPTx jkremser@gs-mac14
@jkremser
jkremser / registry-config.toml
Last active January 26, 2023 11:38
registry-config.toml
version = 2
# /etc/containerd/conf.d/registry-config.toml
[plugins."io.containerd.grpc.v1.cri".registry]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
endpoint = [ "registry-1.docker.io" ]