98 lines
1.8 KiB
YAML
98 lines
1.8 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
labels:
|
|
kubernetes.io/metadata.name: debug
|
|
name: debug
|
|
---
|
|
# httpbin.yaml
|
|
#apiVersion: networking.istio.io/v1alpha3
|
|
#kind: VirtualService
|
|
#metadata:
|
|
# 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
|
|
metadata:
|
|
name: httpbin
|
|
namespace: debug
|
|
spec:
|
|
rules:
|
|
- host: "httpbin.badhouseplants.net"
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: httpbin
|
|
port:
|
|
number: 8000
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: httpbin
|
|
namespace: debug
|
|
labels:
|
|
app: httpbin
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 8000
|
|
selector:
|
|
app: httpbin
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: httpbin
|
|
namespace: debug
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: httpbin
|
|
version: v1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: httpbin
|
|
version: v1
|
|
spec:
|
|
containers:
|
|
- image: docker.io/citizenstig/httpbin
|
|
imagePullPolicy: IfNotPresent
|
|
name: httpbin
|
|
ports:
|
|
- containerPort: 8000
|
|
|
|
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: ubuntu
|
|
namespace: argo-system
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: git@git.badhouseplants.net:badhouseplants/k8s-cluster-config.git
|
|
targetRevision: try-argo-and-flux
|
|
path: manifests/debug/ubuntu
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: default
|