From eecc28839b7088f6bd6be9538db7ddc1986b369f Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Wed, 18 Oct 2017 19:59:55 -0400 Subject: seperate k8s basic installation and ovsdpdk installation Change-Id: I9ba3b52feebb7be6037d88f07f8c861ddbfe9bdf Signed-off-by: Guo Ruijing --- src/vagrant/k8s_kubeadm/examples/nginx-app.sh | 10 -------- src/vagrant/k8s_kubeadm/examples/nginx-app.yaml | 31 ----------------------- src/vagrant/k8s_kubeadm/examples/virtio-user.yaml | 29 --------------------- src/vagrant/k8s_kubeadm/examples/yardstick.sh | 4 --- 4 files changed, 74 deletions(-) delete mode 100755 src/vagrant/k8s_kubeadm/examples/nginx-app.sh delete mode 100644 src/vagrant/k8s_kubeadm/examples/nginx-app.yaml delete mode 100644 src/vagrant/k8s_kubeadm/examples/virtio-user.yaml delete mode 100755 src/vagrant/k8s_kubeadm/examples/yardstick.sh (limited to 'src/vagrant/k8s_kubeadm/examples') diff --git a/src/vagrant/k8s_kubeadm/examples/nginx-app.sh b/src/vagrant/k8s_kubeadm/examples/nginx-app.sh deleted file mode 100755 index bfd0613..0000000 --- a/src/vagrant/k8s_kubeadm/examples/nginx-app.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -kubectl create -f /vagrant/examples/nginx-app.yaml -kubectl get nodes -kubectl get services -kubectl get pods -kubectl get rc -sleep 120 -svcip=$(kubectl get services nginx -o json | grep clusterIP | cut -f4 -d'"') -wget http://$svcip diff --git a/src/vagrant/k8s_kubeadm/examples/nginx-app.yaml b/src/vagrant/k8s_kubeadm/examples/nginx-app.yaml deleted file mode 100644 index f80881a..0000000 --- a/src/vagrant/k8s_kubeadm/examples/nginx-app.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: nginx - labels: - app: nginx -spec: - type: NodePort - ports: - - port: 80 - protocol: TCP - name: http - selector: - app: nginx ---- -apiVersion: v1 -kind: ReplicationController -metadata: - name: nginx -spec: - replicas: 2 - template: - metadata: - labels: - app: nginx - spec: - containers: - - name: nginx - image: nginx - ports: - - containerPort: 80 diff --git a/src/vagrant/k8s_kubeadm/examples/virtio-user.yaml b/src/vagrant/k8s_kubeadm/examples/virtio-user.yaml deleted file mode 100644 index 9ab1e06..0000000 --- a/src/vagrant/k8s_kubeadm/examples/virtio-user.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - name: virtiouser -spec: - replicas: 2 - template: - metadata: - labels: - app: virtiouser - spec: - containers: - - name: virtiouser - image: openretriever/virtio-user-ping - volumeMounts: - - mountPath: /dev/hugepages - name: hugepage-volume - - mountPath: /var/run - name: vhost-volume - command: - - /root/setup_virtio_user.sh - volumes: - - name: hugepage-volume - hostPath: - path: /dev/hugepages - - name: vhost-volume - hostPath: - path: /var/run - restartPolicy: Always diff --git a/src/vagrant/k8s_kubeadm/examples/yardstick.sh b/src/vagrant/k8s_kubeadm/examples/yardstick.sh deleted file mode 100755 index bc1eecf..0000000 --- a/src/vagrant/k8s_kubeadm/examples/yardstick.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -sudo docker run -tid -v /etc/kubernetes/admin.conf:/etc/yardstick/admin.conf --name yardstick opnfv/yardstick:latest -sudo docker exec -ti yardstick yardstick task start yardstick/samples/ping_k8s.yaml -- cgit 1.2.3-korg