65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: wildduck-operator
|
|
namespace: wildduck
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: wildduck-operator
|
|
serviceName: wildduck-operator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: wildduck-operator
|
|
spec:
|
|
containers:
|
|
- image: mirror.gcr.io/codemowers/wildduck-operator:latest
|
|
name: wildduck-operator
|
|
env:
|
|
- name: MANAGED_DOMAIN
|
|
value: k-space.ee
|
|
- name: ALLOWED_GROUPS
|
|
value: k-space:friends,k-space:floor
|
|
- name: WILDDUCK_API_URL
|
|
value: http://wildduck-api:8080
|
|
- name: WILDDUCK_API_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: wildduck
|
|
key: WILDDUCK_API_TOKEN
|
|
ports:
|
|
- containerPort: 8000
|
|
name: metrics
|
|
enableServiceLinks: false
|
|
serviceAccountName: codemowers-cloud-wildduck-operator
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: wildduck-operator
|
|
name: wildduck-operator
|
|
namespace: wildduck
|
|
spec:
|
|
ports:
|
|
- name: metrics
|
|
port: 8000
|
|
protocol: TCP
|
|
selector:
|
|
app: wildduck-operator
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: wildduck-operator
|
|
namespace: wildduck
|
|
spec:
|
|
endpoints:
|
|
- port: metrics
|
|
selector:
|
|
matchLabels:
|
|
app: wildduck-operator
|