Created
April 12, 2017 21:38
-
-
Save FuzzOli87/a20ebf92650f131834fb1fd6e1ddd6c3 to your computer and use it in GitHub Desktop.
The test app that serves a web app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
name: world-v1 | |
type: frontend | |
name: world-v1 | |
namespace: prototype | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
name: world-v1 | |
type: frontend | |
spec: | |
containers: | |
- image: quay.io/mycompany/webapp | |
name: world-v1 | |
ports: | |
- containerPort: 3000 | |
name: world-v1 | |
env: | |
- name: NODE_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: spec.nodeName | |
- name: POD_IP | |
valueFrom: | |
fieldRef: | |
fieldPath: status.podIP | |
- name: http_proxy | |
value: $(NODE_NAME):4140 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
name: world-v1 | |
type: frontend | |
name: world-v1 | |
namespace: prototype | |
spec: | |
clusterIP: None | |
ports: | |
- port: 3000 | |
name: http | |
selector: | |
name: world-v1 | |
type: frontend | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment