command
module
Version:
v1.3.6
Opens a new window with list of versions in this module.
Published: Sep 17, 2020
License: MIT
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
tirev
Tiny Sidecar Reverse Proxy Powered by Parapet
gcr.io/moonrhythm-containers/tirev
Example
Docker
#!/bin/bash
NAME=https
IMAGE=gcr.io/moonrhythm-containers/tirev
TAG=v1.2.0
ARGS=
MOUNT_SOURCE=/data/https
MOUNT_TARGET=/cert
PORT_SOURCE=443
PORT_TARGET=443
docker pull $IMAGE:$TAG
docker stop $NAME
docker rm $NAME
docker run -d --restart=always --name=$NAME \
-e FRONT=true \
-e PORT=443 \
-e NO_HEALTHZ=true \
-e NO_PROM=true \
-e NO_REQID=true \
-e UPSTREAM_ADDR=app:8080 \
-e UPSTREAM_PROTO=http \
-e TLS_KEY=/cert/tls.key \
-e TLS_CERT=/cert/tls.crt \
-e REDIRECT_WWW=non \
--link app:app \
-p $PORT_SOURCE:$PORT_TARGET -v $MOUNT_SOURCE:$MOUNT_TARGET $IMAGE:$TAG $ARGS
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: echoserver
name: echoserver
spec:
replicas: 2
selector:
matchLabels:
app: echoserver
template:
metadata:
annotations:
prometheus.io/port: "9187"
prometheus.io/scrape: "true"
labels:
app: echoserver
name: echoserver
spec:
containers:
- name: echoserver
image: gcr.io/google-containers/echoserver:1.10
ports:
- containerPort: 8080
- name: tirev
image: gcr.io/moonrhythm-containers/tirev:v1.2.0
env:
- name: PORT
value: "80"
- name: UPSTREAM_ADDR
value: 127.0.0.1:8080
- name: RATELIMIT_S
value: "30"
- name: BODY_LIMITREQUEST
value: "15728640"
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /healthz
port: 80
scheme: HTTP
successThreshold: 1
failureThreshold: 2
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /healthz?ready=1
port: 80
scheme: HTTP
successThreshold: 1
failureThreshold: 2
timeoutSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
labels:
app: echoserver
name: echoserver
spec:
type: ClusterIP
selector:
app: echoserver
ports:
- name: http
port: 80
targetPort: 80
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.