Files
netbird-kubernetes-operator/examples/ingress/exposed-nginx.yaml
T

49 lines
811 B
YAML
Raw Normal View History

2025-03-06 10:57:45 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
2025-03-06 15:32:17 +01:00
app: nginx
name: nginx
2025-03-06 10:57:45 +02:00
namespace: default
spec:
replicas: 1
selector:
matchLabels:
2025-03-06 15:32:17 +01:00
app: nginx
2025-03-06 10:57:45 +02:00
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
2025-03-06 15:32:17 +01:00
app: nginx
2025-03-06 10:57:45 +02:00
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: nginx
---
apiVersion: v1
kind: Service
metadata:
annotations:
netbird.io/expose: "true"
netbird.io/policy: default
netbird.io/resource-name: nginx
2025-03-06 15:32:17 +01:00
netbird.io/groups: nginx-k8s-gke
2025-03-06 10:57:45 +02:00
labels:
2025-03-06 15:32:17 +01:00
app: nginx
name: nginx
2025-03-06 10:57:45 +02:00
namespace: default
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
2025-03-06 15:32:17 +01:00
app: nginx
2025-03-06 10:57:45 +02:00
type: ClusterIP