|
|
@ -1,26 +1,40 @@
|
|
|
|
---
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
|
|
|
|
kind: ConfigMap
|
|
|
|
kind: ConfigMap
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-conf
|
|
|
|
name: nginx-configuration
|
|
|
|
namespace: kube-system
|
|
|
|
namespace: ingress-nginx
|
|
|
|
labels:
|
|
|
|
labels:
|
|
|
|
k8s-app: nginx-ingress-controller
|
|
|
|
app: ingress-nginx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
|
|
|
|
name: udp-services
|
|
|
|
|
|
|
|
namespace: ingress-nginx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
|
|
|
|
name: tcp-services
|
|
|
|
|
|
|
|
namespace: ingress-nginx
|
|
|
|
data:
|
|
|
|
data:
|
|
|
|
25: "default/smtp:25"
|
|
|
|
25: "mailu/smtp:25"
|
|
|
|
465: "default/smtp:465"
|
|
|
|
465: "mailu/smtp:465"
|
|
|
|
587: "default/smtp:587"
|
|
|
|
587: "mailu/smtp:587"
|
|
|
|
143: "default/imap:143"
|
|
|
|
143: "mailu/imap:143"
|
|
|
|
993: "default/imap:993"
|
|
|
|
993: "mailu/imap:993"
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-controller
|
|
|
|
name: nginx-ingress-controller
|
|
|
|
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
labels:
|
|
|
|
k8s-app: nginx-ingress-controller
|
|
|
|
k8s-app: nginx-ingress-controller
|
|
|
|
namespace: kube-system
|
|
|
|
|
|
|
|
spec:
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
template:
|
|
|
@ -38,8 +52,15 @@ spec:
|
|
|
|
# hostNetwork: true
|
|
|
|
# hostNetwork: true
|
|
|
|
terminationGracePeriodSeconds: 60
|
|
|
|
terminationGracePeriodSeconds: 60
|
|
|
|
containers:
|
|
|
|
containers:
|
|
|
|
- image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.11
|
|
|
|
- image: gcr.io/google_containers/nginx-ingress-controller:0.11.0
|
|
|
|
name: nginx-ingress-controller
|
|
|
|
name: nginx-ingress-controller
|
|
|
|
|
|
|
|
args:
|
|
|
|
|
|
|
|
- /nginx-ingress-controller
|
|
|
|
|
|
|
|
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
|
|
|
|
|
|
|
|
- --configmap=$(POD_NAMESPACE)/nginx-configuration
|
|
|
|
|
|
|
|
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
|
|
|
|
|
|
|
|
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
|
|
|
|
|
|
|
|
- --annotations-prefix=nginx.ingress.kubernetes.io
|
|
|
|
readinessProbe:
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
path: /healthz
|
|
|
@ -57,14 +78,6 @@ spec:
|
|
|
|
hostPort: 25
|
|
|
|
hostPort: 25
|
|
|
|
- containerPort: 443
|
|
|
|
- containerPort: 443
|
|
|
|
hostPort: 443
|
|
|
|
hostPort: 443
|
|
|
|
- containerPort: 143
|
|
|
|
|
|
|
|
hostPort: 143
|
|
|
|
|
|
|
|
- containerPort: 465
|
|
|
|
|
|
|
|
hostPort: 465
|
|
|
|
|
|
|
|
- containerPort: 587
|
|
|
|
|
|
|
|
hostPort: 587
|
|
|
|
|
|
|
|
- containerPort: 993
|
|
|
|
|
|
|
|
hostPort: 993
|
|
|
|
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
- name: POD_NAME
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
valueFrom:
|
|
|
@ -74,7 +87,3 @@ spec:
|
|
|
|
valueFrom:
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
args:
|
|
|
|
|
|
|
|
- /nginx-ingress-controller
|
|
|
|
|
|
|
|
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
|
|
|
|
|
|
|
|
- --tcp-services-configmap=$(POD_NAMESPACE)/nginx-ingress-conf
|
|
|
|
|
|
|
|