2017-06-08 06:34:36 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress
|
|
|
|
namespace: nginx-ingress
|
|
|
|
spec:
|
|
|
|
# Can also use LoadBalancer type
|
|
|
|
type: NodePort
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 8080
|
|
|
|
nodePort: 30080
|
|
|
|
targetPort: 80
|
|
|
|
protocol: TCP
|
2017-09-21 17:53:43 +00:00
|
|
|
- name: https
|
|
|
|
port: 443
|
|
|
|
nodePort: 30443
|
|
|
|
targetPort: 443
|
|
|
|
protocol: TCP
|
2017-06-08 06:34:36 +00:00
|
|
|
selector:
|
|
|
|
k8s-app: nginx-ingress-lb
|