Files
netbird-kubernetes-operator/examples/gateway-api/nginx.yaml
T

62 lines
976 B
YAML
Raw Normal View History

2026-03-19 13:01:58 +01:00
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: nginx
namespace: default
labels:
app: nginx
spec:
hostnames:
- nginx-test-app.eu1.netbird.services
parentRefs:
- name: netbird
namespace: netbird
rules:
- backendRefs:
- name: nginx
port: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
namespace: default
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: nginx
---
apiVersion: v1
kind: Service
metadata:
name: nginx
namespace: default
labels:
app: nginx
spec:
type: ClusterIP
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx