Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Add v1beta1 and v1 kustomize manifest (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffwan authored Jun 26, 2020
1 parent 1e221d7 commit c583951
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ COPY mxnet-operator.v1 /opt/kubeflow
RUN chmod a+x /opt/kubeflow/mxnet-operator.v1beta1
RUN chmod a+x /opt/kubeflow/mxnet-operator.v1

CMD ["/opt/kubeflow/mxnet-operator.v1", "--alsologtostderr", "-v=1"]
CMD ["/opt/kubeflow/mxnet-operator.v1"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ and manage Apache MXNet jobs just like built-in K8S resources.
### Deploy MXJob CRD and Apache MXNet Operator

```
kubectl create -k manifests
kubectl create -k manifests/overlays/v1beta1/
```

### Verify that MXJob CRD and Apache MXNet Operator are installed
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- crd-v1beta1.yaml
- service-account.yaml
- cluster-role.yaml
- cluster-role-binding.yaml
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions manifests/overlays/v1/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mxnet-operator
spec:
template:
spec:
containers:
- name: mxnet-operator
image: kubeflow/mxnet-operator:v1.0.0-20200625

10 changes: 10 additions & 0 deletions manifests/overlays/v1/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../base
resources:
- crd-v1.yaml

patchesStrategicMerge:
- deployment.yaml
File renamed without changes.
11 changes: 11 additions & 0 deletions manifests/overlays/v1beta1/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../base
resources:
- crd-v1beta1.yaml

images:
- name: mxjob/mxnet-operator
newTag: v1beta1

0 comments on commit c583951

Please sign in to comment.