Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- apiVersion: v1
- kind: ReplicationController
- metadata:
- name: ubuntu-test-rc
- spec:
- replicas: 1
- selector:
- env: fortpedro
- app: ubuntu-test
- template:
- metadata:
- name: ubuntu
- labels:
- env: fortpedro
- app: ubuntu-test
- spec:
- containers:
- - name: ubuntu
- image: ubuntu
- ports:
- - containerPort: 8000
- protocol: TCP
- stdin: true
- tty: true
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: ubuntu-test-srv
- spec:
- type: NodePort
- ports:
- - nodePort: 62000
- port: 62000
- targetPort: 8000
- protocol: TCP
- name: "test-httpserver"
- selector:
- app: ubuntu-test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement