Skip to content

Instantly share code, notes, and snippets.

@limbuu
Created July 13, 2020 15:38
Show Gist options
  • Save limbuu/a9d5fbd50f4eee14843f2e0cee4dc27e to your computer and use it in GitHub Desktop.
Save limbuu/a9d5fbd50f4eee14843f2e0cee4dc27e to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: test-app
name: test-app-deployment
spec:
replicas: 1
selector:
matchLabels:
run: test-app
template:
metadata:
labels:
run: test-app
spec:
containers:
- image: gcr.io/demo-cloudbuild/built-with-kaniko-image
name: test-app-image
imagePullPolicy: IfNotPresent
---
kind: Service
apiVersion: v1
metadata:
name: test-app-service
spec:
selector:
run: test-app
ports:
- protocol: TCP
port: 5000
targetPort: 5000
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment