cluster.fun/manifests/blackhole/blackhole.yaml

60 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2020-05-02 17:41:31 +00:00
apiVersion: v1
kind: Service
metadata:
name: black-hole
namespace: kube-system
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 9090
name: web
selector:
app: black-hole
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: black-hole
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: black-hole
template:
metadata:
labels:
app: black-hole
spec:
containers:
- name: black-hole
image: averagemarcus/black-hole:latest
imagePullPolicy: Always
ports:
- containerPort: 9090
name: web
resources:
limits:
2020-06-05 21:51:40 +00:00
memory: 10Mi
requests:
memory: 10Mi
2020-06-06 14:24:56 +00:00
2020-05-02 17:41:31 +00:00
---
apiVersion: networking.k8s.io/v1
2020-05-02 17:41:31 +00:00
kind: Ingress
metadata:
name: black-hole
namespace: kube-system
spec:
rules:
- http:
paths:
- path: /
pathType: ImplementationSpecific
2020-05-02 17:41:31 +00:00
backend:
service:
name: black-hole
port:
number: 80