Skip to content

Instantly share code, notes, and snippets.

@wanderindev
Created June 29, 2022 04:28
Show Gist options
  • Save wanderindev/a32284c0e3c43815a7f5f823cfb658cf to your computer and use it in GitHub Desktop.
Save wanderindev/a32284c0e3c43815a7f5f823cfb658cf to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: hr-rest
spec:
ports:
- port: 80
targetPort: 5002
selector:
app: hr-rest
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hr-rest
spec:
selector:
matchLabels:
app: hr-rest
replicas: 2
template:
metadata:
labels:
app: hr-rest
spec:
containers:
- name: hr-rest
image: wanderindev/hr-rest:latest
ports:
- containerPort: 5002
nodeSelector:
beta.kubernetes.io/instance-type: "s-1vcpu-2gb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment