diff options
Diffstat (limited to 'src/vagrant/k8s_kubeadm/examples')
-rwxr-xr-x | src/vagrant/k8s_kubeadm/examples/nginx-app.sh | 10 | ||||
-rw-r--r-- | src/vagrant/k8s_kubeadm/examples/nginx-app.yaml | 31 | ||||
-rw-r--r-- | src/vagrant/k8s_kubeadm/examples/virtio-user.yaml | 29 | ||||
-rwxr-xr-x | src/vagrant/k8s_kubeadm/examples/yardstick.sh | 4 |
4 files changed, 0 insertions, 74 deletions
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 |