25 lines
568 B
YAML
25 lines
568 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nginx-ingress-controller
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
prometheus.io/port: "10254"
|
|
prometheus.io/scrape: "true"
|
|
spec:
|
|
containers:
|
|
- name: nginx-ingress-controller
|
|
ports:
|
|
- containerPort: 80
|
|
hostPort: 80
|
|
- containerPort: 443
|
|
hostPort: 443
|
|
nodeSelector:
|
|
ingress-ready: "true"
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/master
|
|
operator: Equal
|
|
effect: NoSchedule
|