Skip to content

Instantly share code, notes, and snippets.

@th1ha
th1ha / keycloak_k8s_readme.md
Last active September 25, 2025 14:13
Kubernetes Authentication with Keycloak OIDC

Kubernetes Authentication with Keycloak OIDC

This guide demonstrates how to set up Kubernetes authentication using Keycloak OIDC provider. The setup includes deploying an ingress controller, creating SSL certificates, installing Keycloak, and configuring it using Ansible.

Prerequisites

  • Running Kubernetes cluster
  • kubectl configured to access your cluster
  • Ansible installed with community.general collection
  • OpenSSL for certificate generation
@th1ha
th1ha / Jenkinsfile
Last active September 25, 2025 14:39
sample_Jenkinsfile
pipeline {
agent any
stages {
stage('pre_job') {
steps {
echo "Running pre-job"
sleep 3
}
}
@th1ha
th1ha / create_multiples_directory.sh
Last active September 25, 2025 07:50
create_multiples_directory
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 <target_directory>"
exit 1
fi
TARGET_DIR="$1"
if [ ! -d "$TARGET_DIR" ]; then