Sha256: 8bae08b92cd15c0e0f31a8b92e60deab10fd2035df966cfdc5b533bcc0f9f03b
Contents?: true
Size: 863 Bytes
Versions: 12
Compression:
Stored size: 863 Bytes
Contents
--- title: Kubes YAML --- You can write your Kubernetes resources in YAML format. .kubes └── resources └── web ├── deployment.yaml └── service.yaml ## YAML and Templating Kubes provides a little extra power for the YAML format. The YAML files are processed through an ERB templating language. So you have dynamic control. Here's an example with `Kubes.env` and the `docker_image` helper. .kubes/resources/web/deployment.yaml ```yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: demo-web labels: app: demo namespace: default spec: replicas: <%= Kubes.env == "prod" ? 2 : 1 %> selector: matchLabels: app: demo template: metadata: labels: app: demo spec: containers: - name: demo-web image: <%= docker_image %> ```
Version data entries
12 entries across 12 versions & 1 rubygems