Sha256: 575bc7b9dbf5bd5bf3752fd6e32c34e652ebf99f4e0bcccdd65ac5320078d3d6
Contents?: true
Size: 837 Bytes
Versions: 25
Compression:
Stored size: 837 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
25 entries across 25 versions & 1 rubygems