MCPcopy Create free account
hub / github.com/Pscheidl/rust-kubernetes-operator-example / deploy

Function deploy

src/echo.rs:16–67  ·  view source on GitHub ↗

Creates a new deployment of `n` pods with the `inanimate/echo-server:latest` docker image inside, where `n` is the number of `replicas` given. Note: It is assumed the resource does not already exists for simplicity. Returns an `Error` if it does. # Arguments - `client` - A Kubernetes client to create the deployment with. - `name` - Name of the deployment to be created - `replicas` - Number of pod

(
    client: Client,
    name: &str,
    replicas: i32,
    namespace: &str,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

reconcileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected