2018-11-27 14:19:17 -05:00

35 lines
996 B
YAML

# Copyright (C) 2018 Wazuh Inc.
#
# This program is a free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
# License (version 2) as published by the FSF - Free Software
# Foundation.
# Nginx service
apiVersion: v1
kind: Service
metadata:
name: wazuh-nginx
namespace: wazuh
labels:
app: wazuh-nginx
# dns: route53
annotations:
# domainName: 'wazuh.some-domain.com' # TODO: Change this for a Hosted Zone you configured in AWS Route 53
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
# service.beta.kubernetes.io/aws-load-balancer-ssl-cert: 'put_your_aws_acm_certificate_arn_here'
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: '443'
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: ssl
spec:
type: LoadBalancer
selector:
app: wazuh-nginx
ports:
- name: web-http
port: 80
targetPort: 80
- name: web-https
port: 443
targetPort: 443