Skip to content

Instantly share code, notes, and snippets.

@codygreen
Created August 12, 2018 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codygreen/91f0c54862a3e2fd740604a5087ca142 to your computer and use it in GitHub Desktop.
Save codygreen/91f0c54862a3e2fd740604a5087ca142 to your computer and use it in GitHub Desktop.
Kubernetes Configuration Example for Skaffold
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