Created
July 18, 2018 20:28
-
-
Save kjenney/c0f9acc33bf6b9b38c9e1cc3102efb1b to your computer and use it in GitHub Desktop.
EKS Test service and deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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