SHARE
TWEET

Untitled

a guest Jul 21st, 2019 429 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: apps/v1beta1
  2. kind: Deployment
  3. metadata:
  4.   name: nodeplatform-deployment
  5. spec:
  6.   replicas: 2
  7.   template:
  8.     metadata:
  9.       labels: # labels to select/identify the deployment
  10.         app: hello-world
  11.     spec: # pod spec
  12.       containers:
  13.       - name: nodeplatform
  14.         image: rampro/nodejs-helloworld
  15.         ports:
  16.         - containerPort: 3000
  17. ---
  18. apiVersion: v1
  19. kind: Service
  20. metadata:
  21.   name: nodeplatform-service
  22. spec:
  23.   selector:
  24.   app: hello-world
  25. # spec: # pod spec
  26.   type: LoadBalancer
  27.   ports:
  28.   - port: 8080
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