Skip to content

Instantly share code, notes, and snippets.

View lahabana's full-sized avatar

Charly Molter lahabana

View GitHub Profile
flowchart LR
  subgraph listener1
    kgw(:8080)
    subgrah route1
    kr1(/foo)
    kr2(/bar)
    sv1(sv1)
 sv2(sv2)
[FAILED] Unexpected error:
<*framework.K8sDecoratedError | 0x14000703770>:
sourceError: 'Wait for pod demo-client-85d99777b8-5m55v to be provisioned.' unsuccessful after 30 retries K8sDetails:'{"kind":"Pod","namespace":"tracing","name":"demo-client-85d99777b8-5m55v","phase":"Running","logs":{"demo-client":"","kuma-init":"# kumactl is about to apply the iptables rules that will enable transparent proxying on the machine. The SSH connection may drop. If that happens, just reconnect again.\n# writing following contents to rules file: /tmp/iptables-rules-1704987957838364174.txt1507552566\n* raw\n\n# Rules:\n--append PREROUTING --protocol udp --source-port 53 --jump CT --zone 1\n--append OUTPUT --protocol udp --destination-port 53 --match owner --uid-owner 5678 --jump CT --zone 1\n--append OUTPUT --protocol udp --source-port 15053 --match owner --uid-owner 5678 --jump CT --zone 2\n--append OUTPUT --protocol udp --destination-port 53 --jump CT --zone 2\n\nCOMMIT\n\n* nat\n\n# Custom Chains:\n--new-ch
@lahabana
lahabana / foo.md
Last active September 7, 2023 09:22
graph TD;
	0 --> 1;
	1 --> 2;
	1 --> 4;
	1 --> 15;
	2 --> 10;
	2 --> 16;
	3 --> 4;
	4 --&gt; 5;
@lahabana
lahabana / defaults.yaml
Last active July 7, 2022 15:57
Examples of new Kuma policies
# Translating all the default resources in the new style
type: MeshCircuitBreaker
mesh: default
name: circuit-breaker-all-default
spec:
to:
- conf:
maxConnections: 1024
maxPendingRequests: 1024
maxRequests: 1024
db:
image: postgres
restart: always
environment:
POSTGRES_USER: kuma
POSTGRES_PASSWORD: kuma
POSTGRES_DB: kuma
networks:
kuma-example:
aliases:
{"claims":[{"url":"http://attestation-0.baklava.missionquorum.co","timestamp":1592517630,"type":"ATTESTATION_SERVICE_URL"}],"meta":{"address":"0x9e8eE043AFFD90eD5403E07C3F3d513Cd0018Ffc","signature":"0x8613e49e2033ac9e5513e34e785ca18b107395bb92db37dc3d6f1276038d050165bcf459f2e6e38c2e2c89d21253fcda9783539080f5419dcf89225bb85322241c"}}
if (closed.get()) {
throw new IllegalStateException("Can't access instance if instance is closed");
}
T instance = instanceMap.get(cluster);
if (instance != null) {
return instance;
}
synchronized (lock) {
instance = instanceMap.get(cluster);
if (instance != null) {