Skip to content

Instantly share code, notes, and snippets.

@pleshakov
pleshakov / README.md
Created September 20, 2023 16:59
Gateway API HTTPS example listener matching

Steps:

kubectl apply -f cafe.yaml
kubectl apply -f full.yaml
kubectl apply -f wildcard.yaml
kubectl apply -f gateway.yaml
kubectl apply -f routes.yaml

GW_IP=XXX.YYY.ZZZ.III # public IP of the data plane
@pleshakov
pleshakov / README.md
Created September 19, 2023 22:24
Gateway API HTTP example listener matching

Steps:

kubectl apply -f cafe.yaml
kubectl apply -f gateway.yaml
kubectl apply -f routes.yaml

GW_IP=XXX.YYY.ZZZ.III # public IP of the data plane
GW_PORT=<port number> # public port
@pleshakov
pleshakov / README.md
Created October 7, 2019 19:58
NGINX Plus Ingress Controller TLS Passthrough

TLS Passthrough in NGINX Plus Ingress Controller

This gist shows how to configure TLS passthrough in NGINX Plus Ingress Controller.

Currently, TLS passthrough is not supported with NGINX Plus Ingress Controller. Long-term, we will be adding support for TLS passthrough via our Custom resources. Short term, there is a workaround solution to enable TLS passthrough which you can find below.

In our example, we will deploy an Ingress resource with TLS termination and a TLS passthrough configuration and test that both work.

Prerequisites

@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

@pleshakov
pleshakov / nginx-config-1.yaml
Created November 14, 2018 11:55
Demo files from NGINX Conf 2018 Using NGINX as a Kubernetes Ingress Controller talk
kind: ConfigMap
apiVersion: v1
metadata:
name: nginx-config
namespace: nginx-ingress
data:
worker-processes: "1"
log-format: '[$time_local] $remote_addr "$request" $status "$upstream_response_time"'