forked from fluid-cloudnative/fluid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split dataset controller and alluxioruntime controller, edit makefile… (
fluid-cloudnative#271) * split dataset controller and alluxioruntime controller, edit makefile and dockerfile * edit cmd of dockerfile,edit .travis.yaml, remove chart 0.4 Co-authored-by: 仇伶玮 <qiulingwei@gitlab.com>
- Loading branch information
1 parent
0d674aa
commit 940d90b
Showing
14 changed files
with
425 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Build the alluxioruntime-controller manager binary | ||
FROM golang:1.14.2 as builder | ||
|
||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid | ||
COPY . . | ||
|
||
RUN make alluxioruntime-controller-build | ||
|
||
FROM alpine:3.10 | ||
RUN apk add --update curl tzdata iproute2 bash libc6-compat vim && \ | ||
rm -rf /var/cache/apk/* && \ | ||
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ | ||
echo "Asia/Shanghai" > /etc/timezone | ||
|
||
RUN curl -o helm-v3.0.3-linux-amd64.tar.gz http://aliacs-k8s-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/public/pkg/helm/helm-v3.0.3-linux-amd64.tar.gz && \ | ||
tar -xvf helm-v3.0.3-linux-amd64.tar.gz && \ | ||
mv linux-amd64/helm /usr/local/bin/ddc-helm && \ | ||
chmod u+x /usr/local/bin/ddc-helm && \ | ||
rm -f helm-v3.0.3-linux-amd64.tar.gz | ||
|
||
ENV K8S_VERSION v1.14.8 | ||
RUN curl -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x /usr/local/bin/kubectl | ||
|
||
add charts/ /charts | ||
|
||
COPY --from=builder /go/bin/alluxioruntime-controller /usr/local/bin/alluxioruntime-controller | ||
RUN chmod -R u+x /usr/local/bin/ | ||
|
||
CMD ["alluxioruntime-controller", "start"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
charts/fluid/fluid/templates/manager/dataset_controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# apiVersion: v1 | ||
# kind: Namespace | ||
# metadata: | ||
# labels: | ||
# control-plane: controller-manager | ||
# name: fluid-system | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dataset-controller-manager | ||
namespace: fluid-system | ||
labels: | ||
control-plane: dataset-controller-manager | ||
spec: | ||
selector: | ||
matchLabels: | ||
control-plane: dataset-controller-manager | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
control-plane: dataset-controller-manager | ||
spec: | ||
serviceAccountName: dataset-controller | ||
tolerations: | ||
- operator: Exists | ||
hostNetwork: true | ||
containers: | ||
- image: "{{ .Values.dataset.controller.image }}" | ||
name: manager | ||
command: ["dataset-controller", "start"] | ||
args: | ||
- --development=false | ||
env: | ||
{{- if .Values.runtime.alluxio.initImage }} | ||
- name: ALLUXIO_INIT_IMAGE_ENV | ||
value: {{ .Values.runtime.alluxio.initImage | quote }} | ||
{{- end }} | ||
ports: | ||
- containerPort: 8080 | ||
name: metrics | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 300Mi | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
terminationGracePeriodSeconds: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: dataset-manager | ||
rules: | ||
- apiGroups: | ||
- data.fluid.io | ||
resources: | ||
- datasets | ||
- datasets/status | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- '*' | ||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: alluxioruntime-manager | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- persistentvolumeclaims | ||
- persistentvolumes | ||
- services | ||
- endpoints | ||
- configmaps | ||
- events | ||
- namespaces | ||
- pods | ||
- pods/exec | ||
- secrets | ||
- nodes | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- data.fluid.io | ||
resources: | ||
- alluxiodataloads | ||
- alluxioruntimes | ||
- datasets | ||
- alluxiodataloads/status | ||
- alluxioruntimes/status | ||
- datasets/status | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- daemonsets | ||
- statefulsets | ||
- daemonsets/status | ||
- statefulsets/status | ||
verbs: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: dataset-clusterrolebinding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: dataset-manager | ||
subjects: | ||
- kind: ServiceAccount | ||
name: dataset-controller | ||
namespace: fluid-system | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: alluxioruntime-clusterrolebinding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: alluxioruntime-manager | ||
subjects: | ||
- kind: ServiceAccount | ||
name: alluxioruntime-controller | ||
namespace: fluid-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: dataset-controller | ||
namespace: fluid-system | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: alluxioruntime-controller | ||
namespace: fluid-system |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.