Created
April 8, 2022 18:46
-
-
Save nobbs/940be172be63df41e8ccb0c8fd805013 to your computer and use it in GitHub Desktop.
ara
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
--- | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: {{ ara_deployment_name }}-ingress | |
namespace: {{ ara_namespace | default(awx_namespace) }} | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/rewrite-target: /$2 | |
nginx.ingress.kubernetes.io/configuration-snippet: | | |
sub_filter '"/' '"/ara/'; | |
sub_filter_once off; | |
spec: | |
tls: | |
- hosts: | |
- {{ awx_fqdn }} | |
secretName: {{ awx_deployment_name }}-ingress-tls | |
rules: | |
- host: {{ awx_fqdn }} | |
http: | |
paths: | |
- backend: | |
service: | |
name: {{ ara_deployment_name }}-service | |
port: | |
name: http | |
path: /ara(/|$)(.*) | |
pathType: Prefix | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ ara_deployment_name }} | |
namespace: {{ ara_namespace | default(awx_namespace) }} | |
spec: | |
selector: | |
matchLabels: | |
app: ara | |
template: | |
metadata: | |
labels: | |
app: ara | |
spec: | |
containers: | |
- name: ara | |
image: {{ ara_image }} | |
env: | |
- name: ARA_ALLOWED_HOSTS | |
value: "['*']" | |
resources: | |
limits: | |
memory: "1Gi" | |
cpu: "1" | |
ports: | |
- containerPort: 8000 | |
name: http | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: {{ ara_deployment_name }}-service | |
namespace: {{ ara_namespace | default(awx_namespace) }} | |
spec: | |
selector: | |
app: ara | |
ports: | |
- port: 8000 | |
targetPort: 8000 | |
name: http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment