SHARE
TWEET

Untitled

a guest Jul 18th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. cat <<EOF > xperimentor-deployment.yaml
  4. ---
  5. apiVersion: "extensions/v1beta1"
  6. kind: "Deployment"
  7. metadata:
  8.   name: "xperimentor-deployment"
  9.   namespace: "default"
  10.   labels:
  11.     app: "xperimentor-deployment"
  12. spec:
  13.   replicas: 3
  14.   selector:
  15.     matchLabels:
  16.       app: "xperimentor-deployment"
  17.   template:
  18.     metadata:
  19.       labels:
  20.         app: "xperimentor-deployment"
  21.     spec:
  22.       containers:
  23.       - name: "xperimentor-container"
  24.         image: "mpacheco95/xperimentor:1.0.0"
  25.         ports:
  26.         - containerPort: 5000
  27. EOF
  28. && kubectl apply -f xperimentor-deployment.yaml
  29. && kubectl expose deployment xperimentor-deployment \
  30.   --type=LoadBalancer \
  31.   --name=xperimentor-service
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top