Skip to main content

Note

While using TrueFoundry python SDK type is not a required field in any of the imported classes

Service

Description

Describes the configuration for the service

Schema

Properties

Liveliness/Readiness Probe

The modules below help configuring the Health Probes for the Service. Learn more about Health Probes here.

HttpProbe

Description

Describes the Instructions for assessing container health by executing an HTTP GET request.
To learn more you can go here

Schema

Properties

HealthProbe

Description

Describes the configuration for the Health Probe’s
To learn more you can go here

Schema

Properties

Port

Description

Describes the ports the service should be exposed to.

Schema

Properties

Enumerate Values

RolloutStrategy

Rolling

Description

This strategy updates the pods in a rolling fashion such that a subset of the
total pods are replaced with new version at one time.
A commonly used strategy can be to have maxUnavailablePercentage close to 0 so that there
is no downtime and keep the maxSurgePercentage to around 25%. If you are anyways running
a large number of pods, the service can often tolerate a few pods going down - so you
max maxUnavailablePercentage = 10 and maxSurgePercentage=0. You can read about it more
here

Schema

Properties

Canary

Description

This strategy brings up the new release without bringing the older release down. Traffic is shifted from the older release to the newer release in a staged manner.
This can help with verifying the health of the new release without shifting complete traffic.

Schema

Properties

CanaryStep

Description

Describes a canary deployment step

Schema

Properties

BlueGreen

Description

This strategy brings up the new release completely before switching the complete load to the new release.
This minimizes the time that two versions are serving traffic at the same time.

Schema

Properties

Autoscaling

ServiceAutoscaling

Description

Describes a Service Autoscaling configuration

Schema

Properties

CPUUtilizationMetric

Description

Describes CPU utilization metric for autoscaling

Schema

Properties

RPSMetric

Description

Describes requests per second metric for autoscaling

Schema

Properties

CronMetric

Description

Describes cron metric for autoscaling

Schema

Properties

Authentication

BasicAuthCreds

Description

Username and password for Basic Service Authentication

Schema

Properties