/
aws-resiliency-services.yaml
48 lines (47 loc) · 1.37 KB
/
aws-resiliency-services.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright Sonatype, Inc., 2022, All Rights Reserved.
#
# The services.yaml shown below sets up the Ingress Load Balancer.
# Note that <scheme> should typically be set to internal.
#
# Note: This YAML file is just an example and cannot be used as-is.
# You must fill it out with the appropriate information for your deployment to be able to use it.
------
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: nxrm-nexus-27385
name: ingress-nxrm-nexus-27385
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: <scheme>
alb.ingress.kubernetes.io/subnets: <subnet id 1>, <subnet id 2>
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:000000000000:certificate/11111111-2abc-7777-0abc-0000ab431111 # The AWS Certificate Manager ARN for your HTTPS certificate
spec:
rules:
- host: example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nxrm-service-nexus-27385
port:
number: 80
---
apiVersion: v1
kind: Service
metadata:
name: nxrm-service-nexus-27385
namespace: nxrm-nexus-27385
labels:
app: nxrm
spec:
type: NodePort
selector:
app: nxrm
ports:
- protocol: TCP
port: 80
targetPort: 8081