---
apiVersion: v1
kind: Namespace
metadata:
labels:
kubernetes.io/metadata.name: debug
name: debug
# httpbin.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
name: httpbin
namespace: debug
spec:
hosts:
- "httpbin.badhouseplants.net"
gateways:
- istio-system/badhouseplants-net
http:
- route:
- destination:
port:
number: 8000
host: httpbin
apiVersion: networking.k8s.io/v1
kind: Ingress
rules:
- host: "httpbin.badhouseplants.net"
paths:
- path: /
pathType: Prefix
backend:
service:
kind: Service
app: httpbin
ports:
- name: http
port: 8000
selector:
apiVersion: apps/v1
kind: Deployment
replicas: 1
matchLabels:
version: v1
template:
containers:
- image: docker.io/citizenstig/httpbin
imagePullPolicy: IfNotPresent
- containerPort: 8000