From aa0d6aaa762d7762ee2405fb39000580029e294a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 21 Jan 2015 23:44:22 +0000 Subject: [PATCH] remove old kb files --- deploy/kube-deploy.sh | 8 -------- deploy/run-kube-startup.sh | 4 ---- deploy/spark-master-pod.yaml | 21 --------------------- deploy/spark-master-service.json | 14 -------------- deploy/spark-slave-controller.json | 29 ----------------------------- deploy/spark-slave-service.json | 14 -------------- 6 files changed, 90 deletions(-) delete mode 100755 deploy/kube-deploy.sh delete mode 100755 deploy/run-kube-startup.sh delete mode 100644 deploy/spark-master-pod.yaml delete mode 100644 deploy/spark-master-service.json delete mode 100644 deploy/spark-slave-controller.json delete mode 100644 deploy/spark-slave-service.json diff --git a/deploy/kube-deploy.sh b/deploy/kube-deploy.sh deleted file mode 100755 index 75d2524..0000000 --- a/deploy/kube-deploy.sh +++ /dev/null @@ -1,8 +0,0 @@ -# Below we start the master pod and service first. -# Then, we start slaves, which will connect through the -# slave proxy. -kubectl create -f ./spark-master-pod.yaml -kubectl create -f ./spark-master-service.json -kubectl create -f ./spark-slave-controller.json -kubectl create -f ./spark-slave-service.json -kubectl get pods,services diff --git a/deploy/run-kube-startup.sh b/deploy/run-kube-startup.sh deleted file mode 100755 index de48d45..0000000 --- a/deploy/run-kube-startup.sh +++ /dev/null @@ -1,4 +0,0 @@ - -for SERVICES in kube-proxy kubelet docker; do systemctl restart docker; systemctl enable docker; systemctl status -l docker ; done - -for serv in etcd kube-apiserver kube-controller-manager kube-scheduler; do systemctl restart kube-scheduler; systemctl enable kube-scheduler; systemctl status kube-scheduler; done diff --git a/deploy/spark-master-pod.yaml b/deploy/spark-master-pod.yaml deleted file mode 100644 index 1ab777d..0000000 --- a/deploy/spark-master-pod.yaml +++ /dev/null @@ -1,21 +0,0 @@ -id: spark-master -kind: Pod -apiVersion: v1beta1 -desiredState: - manifest: - version: v1beta1 - id: spark - containers: - - name: spark - image: jayunit100/spark2 - command: - - /bin/bash - - /opt/run.sh - - master - cpu: 1000 - ports: - - name: spark-master - containerPort: 7077 -labels: - name: spark-master - diff --git a/deploy/spark-master-service.json b/deploy/spark-master-service.json deleted file mode 100644 index e379285..0000000 --- a/deploy/spark-master-service.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "spark-master", - "kind": "Service", - "apiVersion": "v1beta1", - "port": 7077, - "containerPort": 7077, - "selector": { - "name": "spark-master" - }, - "labels": { - "name": "spark-master" - } -} - diff --git a/deploy/spark-slave-controller.json b/deploy/spark-slave-controller.json deleted file mode 100644 index c36f42f..0000000 --- a/deploy/spark-slave-controller.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id": "sparkSlaveController", - "kind": "ReplicationController", - "apiVersion": "v1beta1", - "desiredState": { - "replicas": 10, - "replicaSelector": {"name": "spark-slave"}, - "podTemplate": { - "desiredState": { - "manifest": { - "version": "v1beta1", - "id": "sparkSlaveController", - "containers": [{ - "name": "spark-slave", - "image": "jayunit100/spark4", - "cpu": 200, - "command":["/bin/bash","/opt/run.sh","slave"], - "ports": [{ "containerPort": 6379, "hostPort": 6380 }] - }] - } - }, - "labels": { - "name": "spark-slave", - "uses": "spark-master" - } - } - }, - "labels": {"name": "spark-slave"} -} diff --git a/deploy/spark-slave-service.json b/deploy/spark-slave-service.json deleted file mode 100644 index 1940ba8..0000000 --- a/deploy/spark-slave-service.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "spark-slave", - "kind": "Service", - "apiVersion": "v1beta1", - "port":7000, - "containerPort":7000, - "selector": { - "name": "spark-slave" - }, - "labels": { - "name": "spark-slave" - } -} -