Skip to content

Instantly share code, notes, and snippets.

@xlucasdemelo
Created April 3, 2020 01:59
Show Gist options
  • Save xlucasdemelo/37c2f853500660b72f9ecbe2d9cb6f3e to your computer and use it in GitHub Desktop.
Save xlucasdemelo/37c2f853500660b72f9ecbe2d9cb6f3e to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: greetings-app
labels:
app: greetings-app
spec:
replicas: 3
selector:
matchLabels:
app: greetings-app
template:
metadata:
labels:
app: greetings-app
spec:
containers:
- name: greetings-app
image: xlucasdemelo/greetings:1
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: greetings-service
spec:
selector:
app: greetings-app
ports:
- port: 8888
targetPort: 8080
nodePort: 30008
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment