Skip to content

Instantly share code, notes, and snippets.

@d4kine
d4kine / kuma_issue_4250.md
Last active July 5, 2022 09:14
Extended content for the Kuma issue 4250

Summary issue #4250 Kuma

  • Issue: 5 seconds startup timeout at kuma-sidecar while DNS resolving
  • Setup:
    • OpenShift 4.10 with Multus-CNI
    • Offline / air-gapped environment
    • IPv6 disabled
    • Kuma 1.7.0-amd64
@d4kine
d4kine / kubernetes-dashboard-2.5.0.yml
Last active March 3, 2022 14:34
K8s-Resources to add sa and crb for dashboard
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@d4kine
d4kine / k8s-echoserver.yml
Last active March 25, 2021 12:35
K8s Echoserver
apiVersion: v1
kind: Namespace
metadata:
name: echoserver
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
namespace: echoserver
@d4kine
d4kine / docker-compose.yaml
Last active February 11, 2021 14:07
Compose 4 Kafka and Zookeeper on external host
#
# Docker cant fetch host IP-Address, replace [SERVER] in line 30 with your local hostname or IP directly.
# Note: external port is set to 9093
#
version: '3.1'
services:
zoo1:
image: zookeeper:3.4.9
@d4kine
d4kine / ufw_homeip.sh
Last active June 9, 2021 07:25
UFW + Fail2Ban dynamic filter by DNS name
#!/bin/bash
HOSTNAME=__INSERT__DNS__HERE
LOGFILE=./current_ip.log
RESOLVED_IP=$(host $HOSTNAME | cut -f4 -d' ')
PORTS=(80)
if [ ! -f $LOGFILE ]; then
for PORT in "${PORTS[@]}"; do
/usr/sbin/ufw allow from $RESOLVED_IP to any port $PORT
done
@d4kine
d4kine / __init__.py
Last active November 1, 2020 15:09
Python ELK-Stack logigng module for https://github.com/deviantony/docker-elk
from .logger import log
a01.cdn.update.playstation.org.edgesuite.net
a192.d.akamai.net
al02.cdn.update.playstation.net
api-p014.ribob01.net
apicdn-p014.ribob01.net
artcdnsecure.ribob01.net
asm.np.community.playstation.net
dau01.ps4.update.playstation.net
dbr01.ps4.update.playstation.net
dcn01.ps4.update.playstation.net
@d4kine
d4kine / nvl.java
Last active November 1, 2020 15:09
NVL from Oracle for Java
public <T> T ifNull(T... args) {
for (T arg : args) {
if (arg != null)
return arg;
}
}