Skip to content

Instantly share code, notes, and snippets.

@sedkis
Created March 22, 2022 16:21
Show Gist options
  • Save sedkis/ada1f6f032fd23d39c967b99f926ed24 to your computer and use it in GitHub Desktop.
Save sedkis/ada1f6f032fd23d39c967b99f926ed24 to your computer and use it in GitHub Desktop.
Httpbin Complete Deployment - Tyk Operator
apiVersion: tyk.tyk.io/v1alpha1
kind: ApiDefinition
metadata:
name: httpbin
spec:
name: httpbin
use_keyless: true
protocol: http
active: true
do_not_track: false
proxy:
target_url: http://httpbin.apps:8000
listen_path: /httpbin
strip_listen_path: true
---
apiVersion: v1
kind: Service
metadata:
name: httpbin
labels:
app: httpbin
spec:
ports:
- name: http
port: 8000
targetPort: 80
selector:
app: httpbin
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpbin
spec:
replicas: 1
selector:
matchLabels:
app: httpbin
version: v1
template:
metadata:
labels:
app: httpbin
version: v1
spec:
containers:
- image: docker.io/kennethreitz/httpbin
imagePullPolicy: IfNotPresent
name: httpbin
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment