seaweedfs-operator/deploy/operator.yaml
HarrisonZhu e7b1438ad4 feat(misc): init project use operator-sdk
init project use operator-sdk
2019-10-28 17:35:30 +08:00

34 lines
852 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: seaweedfs-operator
spec:
replicas: 1
selector:
matchLabels:
name: seaweedfs-operator
template:
metadata:
labels:
name: seaweedfs-operator
spec:
serviceAccountName: seaweedfs-operator
containers:
- name: seaweedfs-operator
# Replace this with the built image name
image: REPLACE_IMAGE
command:
- seaweedfs-operator
imagePullPolicy: Always
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "seaweedfs-operator"