Last active
June 18, 2018 18:04
-
-
Save msfidelis/914a6dd2c00b155c41a11a6ff49559d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: ReplicationController | |
metadata: | |
name: microapi | |
spec: | |
replicas: 5 | |
template: | |
metadata: | |
labels: | |
app: microapi | |
spec: | |
containers: | |
- name: microapi | |
image: msfidelis/micro-api:latest | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 3000 | |
--- | |
apiVersion: v1 | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: microapi | |
spec: | |
type: NodePort | |
ports: | |
- port: 3000 | |
nodePort: 30001 | |
selector: | |
app: microapi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment