mirror of
https://github.com/netbirdio/kubernetes-operator.git
synced 2026-05-22 17:11:40 -07:00
Add example steps (#10)
This commit is contained in:
@@ -2,14 +2,14 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: test
|
||||
name: test
|
||||
app: nginx
|
||||
name: nginx
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: test
|
||||
app: nginx
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
@@ -18,7 +18,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: test
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx
|
||||
@@ -32,9 +32,10 @@ metadata:
|
||||
netbird.io/expose: "true"
|
||||
netbird.io/policy: default
|
||||
netbird.io/resource-name: nginx
|
||||
netbird.io/groups: nginx-k8s-gke
|
||||
labels:
|
||||
app: test
|
||||
name: test
|
||||
app: nginx
|
||||
name: nginx
|
||||
namespace: default
|
||||
spec:
|
||||
ports:
|
||||
@@ -43,5 +44,5 @@ spec:
|
||||
protocol: TCP
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: test
|
||||
app: nginx
|
||||
type: ClusterIP
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
#operator:
|
||||
# image:
|
||||
# tag: "0.1.0"
|
||||
ingress:
|
||||
enabled: true
|
||||
router:
|
||||
enabled: true
|
||||
policies:
|
||||
default:
|
||||
name: Kubernetes Default Policy
|
||||
sourceGroups:
|
||||
- All
|
||||
# policies:
|
||||
# default:
|
||||
# name: Kubernetes Default Policy
|
||||
# sourceGroups:
|
||||
# - All
|
||||
|
||||
netbirdAPI:
|
||||
key: "nbp_m0LM9ZZvDUzFO0pY50iChDOTxJgKFM3DIqmZ" # Replace with valid NetBird Service Account token
|
||||
# Replace with valid NetBird Service Account token (PAT)
|
||||
# https://docs.netbird.io/how-to/access-netbird-public-api#creating-an-access-token
|
||||
#key: "nbp_m0LM9yZvDUzF8fpY20iChDOTxJgKFM3DIqmZ"
|
||||
# Use keyFromSecret instead of plain text secret
|
||||
keyFromSecret: "netbird-mgmt-api-key"
|
||||
Reference in New Issue
Block a user