Created
August 12, 2018 14:45
-
-
Save codygreen/91f0c54862a3e2fd740604a5087ca142 to your computer and use it in GitHub Desktop.
Kubernetes Configuration Example for Skaffold
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: | |
name: appABC | |
labels: | |
app: appABC | |
spec: | |
type: NodePort | |
ports: | |
- port: 3000 | |
name: appABC | |
selector: | |
app: appABC | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: appABC | |
labels: | |
app: appABC | |
spec: | |
replicas: 4 | |
selector: | |
matchLabels: | |
app: appABC | |
template: | |
metadata: | |
labels: | |
app: appABC | |
spec: | |
containers: | |
- name: appABC | |
image: codygreen/application | |
env: | |
- name: NODE_ENV | |
value: production | |
ports: | |
- containerPort: 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment