Sha256: c38c9a0bc0ce939fe80a1335e1bfa919ac9fac33ab3ac06e8d19da4197c4b129

Contents?: true

Size: 1.18 KB

Versions: 58

Compression:

Stored size: 1.18 KB

Contents

---
title: Pod
categories: dsl
---

## Example

Here's an example of a Pod.

.kubes/resources/shared/pod.rb

```ruby
name "busybox1"
hostname "busybox-1"
subdomain "default-subdomain"
containers([
  image: "busybox:1.28",
  command: ["sleep", "3600"],
  name: "busybox",
])
```

Produces:

.kubes/output/shared/pod.yaml

```yaml
apiVersion: v1
kind: Pod
metadata:
  name: busybox1
spec:
  containers:
  - image: busybox:1.28
    command:
    - sleep
    - '3600'
    name: busybox
  hostname: busybox-1
  subdomain: default-subdomain
```

## DSL Methods

Here's a list of more common methods:

* activeDeadlineSeconds
* affinity
* automountServiceAccountToken
* containers
* dnsConfig
* dnsPolicy
* enableServiceLinks
* ephemeralContainers
* hostAliases
* hostIPC
* hostNetwork
* hostPID
* hostname
* imagePullSecrets
* initContainers
* nodeName
* nodeSelector
* overhead
* preemptionPolicy
* priority
* priorityClassName
* readinessGates
* restartPolicy
* runtimeClassName
* schedulerName
* securityContext
* serviceAccount
* serviceAccountName
* shareProcessNamespace
* subdomain
* terminationGracePeriodSeconds
* tolerations
* topologySpreadConstraints
* volumes

{% include dsl/methods.md name="pod" %}

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
kubes-0.9.3 docs/_docs/dsl/resources/pod.md
kubes-0.9.2 docs/_docs/dsl/resources/pod.md
kubes-0.9.1 docs/_docs/dsl/resources/pod.md
kubes-0.9.0 docs/_docs/dsl/resources/pod.md
kubes-0.8.10 docs/_docs/dsl/resources/pod.md
kubes-0.8.9 docs/_docs/dsl/resources/pod.md
kubes-0.8.8 docs/_docs/dsl/resources/pod.md
kubes-0.8.7 docs/_docs/dsl/resources/pod.md
kubes-0.8.6 docs/_docs/dsl/resources/pod.md
kubes-0.8.5 docs/_docs/dsl/resources/pod.md
kubes-0.8.4 docs/_docs/dsl/resources/pod.md
kubes-0.8.3 docs/_docs/dsl/resources/pod.md
kubes-0.8.2 docs/_docs/dsl/resources/pod.md
kubes-0.8.1 docs/_docs/dsl/resources/pod.md
kubes-0.8.0 docs/_docs/dsl/resources/pod.md
kubes-0.7.10 docs/_docs/dsl/resources/pod.md
kubes-0.7.9 docs/_docs/dsl/resources/pod.md
kubes-0.7.8 docs/_docs/dsl/resources/pod.md
kubes-0.7.7 docs/_docs/dsl/resources/pod.md
kubes-0.7.6 docs/_docs/dsl/resources/pod.md