diff --git a/doc/examples/disaggregated/fdb/deployment.yaml b/doc/examples/disaggregated/fdb/deployment.yaml new file mode 100644 index 00000000..9619a661 --- /dev/null +++ b/doc/examples/disaggregated/fdb/deployment.yaml @@ -0,0 +1,240 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: fdb-kubernetes-operator-controller-manager +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: fdb-kubernetes-operator-manager-clusterrole +rules: + - apiGroups: + - "" + resources: + - nodes + verbs: + - get + - list + - watch +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: fdb-kubernetes-operator-manager-role +rules: + - apiGroups: + - "" + resources: + - configmaps + - events + - persistentvolumeclaims + - pods + - secrets + - services + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - apps + resources: + - deployments + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - apps.foundationdb.org + resources: + - foundationdbbackups + - foundationdbclusters + - foundationdbrestores + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - apps.foundationdb.org + resources: + - foundationdbbackups/status + - foundationdbclusters/status + - foundationdbrestores/status + verbs: + - get + - patch + - update + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: fdb-kubernetes-operator-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: fdb-kubernetes-operator-manager-role +subjects: + - kind: ServiceAccount + name: fdb-kubernetes-operator-controller-manager + - kind: ServiceAccount + name: default +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: fdb-kubernetes-operator-manager-clusterrolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: fdb-kubernetes-operator-manager-clusterrole +subjects: + - kind: ServiceAccount + name: fdb-kubernetes-operator-controller-manager + namespace: metadata.namespace + - kind: ServiceAccount + name: default + namespace: metadata.namespace +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: fdb-kubernetes-operator-controller-manager + control-plane: controller-manager + name: fdb-kubernetes-operator-controller-manager +spec: + replicas: 1 + selector: + matchLabels: + app: fdb-kubernetes-operator-controller-manager + template: + metadata: + labels: + app: fdb-kubernetes-operator-controller-manager + control-plane: controller-manager + spec: + containers: + - command: + - /manager + env: + - name: WATCH_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + image: foundationdb/fdb-kubernetes-operator:v2.13.0 + name: manager + ports: + - containerPort: 8080 + name: metrics + resources: + limits: + cpu: 500m + memory: 256Mi + requests: + cpu: 500m + memory: 256Mi + securityContext: + allowPrivilegeEscalation: false + privileged: false + readOnlyRootFilesystem: true + volumeMounts: + - mountPath: /tmp + name: tmp + - mountPath: /var/log/fdb + name: logs + - mountPath: /usr/bin/fdb + name: fdb-binaries + initContainers: + - args: + - --copy-library + - "7.1" + - --copy-binary + - fdbcli + - --copy-binary + - fdbbackup + - --copy-binary + - fdbrestore + - --output-dir + - /var/output-files + - --mode + - init + image: foundationdb/fdb-kubernetes-monitor:7.1.67 + name: foundationdb-kubernetes-init-7-1 + volumeMounts: + - mountPath: /var/output-files + name: fdb-binaries + - args: + - --copy-library + - "7.3" + - --copy-binary + - fdbcli + - --copy-binary + - fdbbackup + - --copy-binary + - fdbrestore + - --output-dir + - /var/output-files + - --mode + - init + image: foundationdb/fdb-kubernetes-monitor:7.3.63 + name: foundationdb-kubernetes-init-7-3 + volumeMounts: + - mountPath: /var/output-files + name: fdb-binaries + - args: + - --copy-library + - "7.4" + - --copy-binary + - fdbcli + - --copy-binary + - fdbbackup + - --copy-binary + - fdbrestore + - --output-dir + - /var/output-files + - --mode + - init + image: foundationdb/fdb-kubernetes-monitor:7.4.1 + name: foundationdb-kubernetes-init-7-4 + volumeMounts: + - mountPath: /var/output-files + name: fdb-binaries + securityContext: + fsGroup: 4059 + runAsGroup: 4059 + runAsUser: 4059 + serviceAccountName: fdb-kubernetes-operator-controller-manager + terminationGracePeriodSeconds: 10 + volumes: + - emptyDir: {} + name: tmp + - emptyDir: {} + name: logs + - emptyDir: {} + name: fdb-binaries \ No newline at end of file