Skip to content

Instantly share code, notes, and snippets.

@kjenney
Created July 18, 2018 20:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjenney/c0f9acc33bf6b9b38c9e1cc3102efb1b to your computer and use it in GitHub Desktop.
Save kjenney/c0f9acc33bf6b9b38c9e1cc3102efb1b to your computer and use it in GitHub Desktop.
EKS Test service and deploy
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: coffee
namespace: ingress-nginx
spec:
replicas: 2
selector:
matchLabels:
app: coffee
template:
metadata:
labels:
app: coffee
spec:
containers:
- name: coffee
image: nginxdemos/hello:plain-text
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: coffee-svc
namespace: ingress-nginx
labels:
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app: coffee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment