Ingress
Bases: DuploResourceV3
Kubernetes Ingress
This class offers methods to manage Kubernetes Ingress within DuploCloud.
See more details at: https://docs.duplocloud.com/docs/kubernetes-overview/ingress-loadbalancer
Commands
apply
Apply a Ingress
Create or Update a Ingress resource with Duplocloud cli.
CLI Usage
Contents of theingress.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
Success message. |
Parameters:
--file, -f, --cli-input
--patches, --add, --remove, --copy, --replace, --test, --move
create
Create an Ingress resource.
Creates a new Ingress resource with the specified metadata and data entries.
CLI Usage
Contents of theingress.yaml file
Create an Ingress using a one-liner.
echo """
labels: null
annotations: null
lbConfig:
listeners:
http:
- 80
dnsPrefix: "duploctl"
isPublic: true
rules:
- path: "/"
pathType: "Prefix"
serviceName: "nginx"
port: 80
host: "duploctl-nginx.duplocloud.net"
portName: null
name: "duploctl"
ingressClassName: "alb"
otherSpecs:
tls: []
""" | duploctl ingress create -f -
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
The created resource or success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the Ingress could not be created due to invalid configuration or API errors. |
Parameters:
--file, -f, --cli-input
delete
find
list
update
Update an Ingress resource.
Update an existing Ingress resource with the specified metadata and data entries. The update can be performed either by providing a complete resource definition or by applying JSON patches to modify specific fields.
CLI Usage
Contents of theingress.yaml file
Update ingress using a one-liner.
echo """
labels: null
annotations: null
lbConfig:
listeners:
http:
- 80
dnsPrefix: "duploctl"
isPublic: true
rules:
- path: "/"
pathType: "Prefix"
serviceName: "nginx"
port: 80
host: "duploctl-nginx.duplocloud.net"
portName: null
name: "duploctl"
ingressClassName: "alb"
otherSpecs:
tls: []
""" | duploctl ingress update -f -
Update dnsPrefix for an ingress.
Update port of a rule for an ingress.
Update ingress by adding an additional rule.
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
The created resource or success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the Ingress could not be updated. |
Parameters:
name
positional
--file, -f, --cli-input
--patches, --add, --remove, --copy, --replace, --test, --move