Skip to main content

Local-ingress

This role can be used to create an ingress for non-kubernetes applications.

Using the role

Role Requirements

This role depends on the following roles to be deployed beforehand:

- include_role:
name: k3s

Note: If you want to monitor the deployed application with Dynatrace, you cannot use the dt-operator role as it cannot monitor outside of containers. Use the dt-oneagent-classic role instead.

Role variables

VariableDescriptionDefault
local_ingress_portthe port where the locally running app is exposed on8080
local_ingress_domainthe domain you want the app to be available on
local_ingress_namespacethe namespace for the ingress objectingress
local_ingress_namethe name of the helm releaselocal-ingress-(5 random characters)
local_private_ipthe private IP for the VM{{ ansible_default_ipv4.address }}
local_ingress_classthe ingress class to use, defaults to local_ingress variable{{ local_ingress }}

Creating a local ingress

The following snippet shows how to deploy the ingress and als

- include_role:
name: local-ingress
vars:
local_ingress_port: "8080"
local_ingress_domain: "myapp.mydomain"
local_ingress_namespace: "my-namespace"
local_ingress_name: "myingressname"