-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/add default ingress-nginx service (#11330)
feat/add default ingress-nginx service feat/add default ingress-nginx service feat/add default ingress-nginx service Co-authored-by: ABW <[email protected]>
- Loading branch information
1 parent
87d2ac5
commit 73a511b
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
1 change: 1 addition & 0 deletions
1
roles/kubernetes-apps/ingress_controller/ingress_nginx/defaults/main.yml
This file contains 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
This file contains 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
24 changes: 24 additions & 0 deletions
24
roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/svc-ingress-nginx.yml.j2
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% if not ingress_nginx_host_network %} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ingress-nginx | ||
namespace: {{ ingress_nginx_namespace }} | ||
labels: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/part-of: ingress-nginx | ||
spec: | ||
type: {{ ingress_nginx_service_type }} | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
- name: https | ||
port: 443 | ||
targetPort: 443 | ||
protocol: TCP | ||
selector: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/port-of: ingress-nginx | ||
{% endif %} |