Skip to content

Instantly share code, notes, and snippets.

@ams0
Created August 31, 2017 05:46
Show Gist options
  • Save ams0/0e1763c795220eadff01732abdc1753e to your computer and use it in GitHub Desktop.
Save ams0/0e1763c795220eadff01732abdc1753e to your computer and use it in GitHub Desktop.
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