daily pastebin goal
25%
SHARE
TWEET

k8 rc, service files for testing

a guest Feb 12th, 2016 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. apiVersion: v1
  3. kind: ReplicationController
  4. metadata:
  5.   name: ubuntu-test-rc
  6. spec:
  7.   replicas: 1
  8.   selector:
  9.     env: fortpedro
  10.     app: ubuntu-test
  11.   template:
  12.     metadata:
  13.       name: ubuntu
  14.       labels:
  15.         env: fortpedro
  16.         app: ubuntu-test
  17.     spec:
  18.       containers:
  19.         - name: ubuntu
  20.           image: ubuntu
  21.           ports:
  22.             - containerPort: 8000
  23.               protocol: TCP
  24.           stdin: true
  25.           tty: true
  26. ---
  27. apiVersion: v1
  28. kind: Service
  29. metadata:
  30.   name: ubuntu-test-srv
  31. spec:
  32.   type: NodePort
  33.   ports:
  34.   - nodePort: 62000
  35.     port: 62000
  36.     targetPort: 8000
  37.     protocol: TCP
  38.     name: "test-httpserver"
  39.   selector:
  40.     app: ubuntu-test
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