-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
66 lines (50 loc) · 1.94 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# https://k3d.io/v5.5.2/usage/exposing_services/
create-cluster:
k3d cluster create -p "54321:80@loadbalancer"
delete-cluster:
k3d cluster delete
ca:
step certificate create root.linkerd.cluster.local linkerd-control-plane/ca.crt linkerd-control-plane/ca.key \
--profile root-ca --no-password --insecure -f
ca-secret:
kubectl create ns linkerd || true
kubectl create secret tls \
linkerd-trust-anchor \
--cert=linkerd-control-plane/ca.crt \
--key=linkerd-control-plane/ca.key \
--namespace=linkerd
issuer:
step certificate create identity.linkerd.cluster.local linkerd-control-plane/issuer.crt linkerd-control-plane/issuer.key \
--profile intermediate-ca --not-after 8760h --no-password --insecure \
--ca linkerd-control-plane/ca.crt --ca-key linkerd-control-plane/ca.key
emojivoto:
kubectl apply -f https://run.linkerd.io/emojivoto.yml && \
kubectl annotate ns emojivoto linkerd.io/inject=enabled && \
kubectl apply -f emojivoto/ingress.yaml && \
kubectl rollout restart deploy -n emojivoto
apply-all:
helmfile -f helmfile.yaml apply
diff-all:
helmfile -f helmfile.yaml diff
destroy-all:
helmfile -f helmfile.yaml destroy
template-all:
helmfile -f helmfile.yaml template
apply NAME:
helmfile -f helmfile.yaml apply --selector name={{ NAME }}
diff NAME:
helmfile -f helmfile.yaml diff --selector name={{ NAME }}
destroy NAME:
helmfile -f helmfile.yaml destroy --selector name={{ NAME }}
template NAME:
helmfile -f helmfile.yaml template --selector name={{ NAME }}
# https://linkerd.io/2.14/tasks/configuring-dynamic-request-routing/
expect-backend-a:
curl -sX POST podinfo.local:54321/echo | grep -o 'PODINFO_UI_MESSAGE=. backend'
expect-backend-b:
curl -sX POST -H 'x-request-id: alternative' \
podinfo.local:54321/echo | grep -o 'PODINFO_UI_MESSAGE=. backend'
booksapp:
kubectl apply -f booksapp/namespace.yaml && \
kubectl -n booksapp apply -f https://run.linkerd.io/booksapp.yml && \
kubectl -n booksapp apply -f booksapp/ingress.yaml