Created
August 31, 2017 05:46
-
-
Save ams0/0e1763c795220eadff01732abdc1753e to your computer and use it in GitHub Desktop.
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: v1 | |
kind: Pod | |
metadata: | |
name: ingress-pod | |
labels: | |
k8s-app: ingress-service | |
namespace: kube-system | |
spec: | |
containers: | |
- name: nginx | |
image: gcr.io/google_containers/defaultbackend:1.0 | |
ports: | |
- containerPort: 8080 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ingress-service | |
namespace: kube-system | |
labels: | |
k8s-app: ingress-service | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
selector: | |
k8s-app: ingress-service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment