Skip to content

Instantly share code, notes, and snippets.

View magicalyak's full-sized avatar

Tom Gamull magicalyak

View GitHub Profile
@magn2o
magn2o / eap_proxy.sh
Last active February 16, 2021 07:54
init.d style service script for eap_proxy on the UDMPro.
#!/bin/sh
set -eu -o pipefail
CONTAINER_NAME="eap_proxy"
IMAGE_NAME="pbrah/eap_proxy-udmpro"
IMAGE_TAG="v1.1"
container_exists() {
podman container inspect "${1}" &>/dev/null
@magicalyak
magicalyak / agent-fix.sh
Last active May 5, 2020 19:56
NGINX Controller v3 Install
#!/bin/bash
### Run this on the nplus instances to fix the issue where they start before the controller is running
sudo mkdir -p /etc/systemd/system/controller-agent.service.d/
{ echo "[Service]";
echo "Restart=on-failure";
echo "RestartSec=60s";
} | sudo tee /etc/systemd/system/controller-agent.service.d/10-restart-delay.conf
sudo systemctl daemon-reload
kind: ConfigMap
apiVersion: v1
metadata:
name: nginx-config
namespace: nginx-ingress
data:
enable-debug: "True"
main-template: |
user nginx;
worker_processes {{.WorkerProcesses}};
@pleshakov
pleshakov / README.md
Created June 13, 2019 11:52
NGINX Plus Ingress Controller with custom annotations for sticky learn session persistence with sessions sharing among multiple IC replicas.

Description

This demo shows how to enable sticky learn session persistence for an Ingress resource with the sessions shared among multiple NGINX Plus Ingress Controller pods.

Setup

  1. Deploy the Ingress Controller as a deployment -- https://github.com/nginxinc/kubernetes-ingress/blob/master/docs/installation.md
  2. Deploy a headless service for the Ingress Controller that will be used for zone synchronization:

$ kubectl apply -f nginx-ingress-zonesync.yaml