kubernetes/test/e2e/dra/test-driver/deploy/example/pod-inline.yaml
Patrick Ohly 29941b8d3e api: resource.k8s.io v1alpha1 -> v1alpha2
For Kubernetes 1.27, we intend to make some breaking API changes:
- rename PodScheduling -> PodSchedulingHints (https://github.com/kubernetes/kubernetes/issues/114283)
- extend ResourceClaimStatus (https://github.com/kubernetes/enhancements/pull/3802)

We need to switch from v1alpha1 to v1alpha2 for that.
2023-03-14 07:52:03 +01:00

46 lines
1.1 KiB
YAML

# One inline resource claim, one pod, two containers.
# One container uses resource, one does not.
apiVersion: v1
kind: ConfigMap
metadata:
name: test-inline-claim-parameters
namespace: default
data:
a: b
---
apiVersion: resource.k8s.io/v1alpha2
kind: ResourceClaimTemplate
metadata:
name: test-inline-claim-template
namespace: default
spec:
metadata:
labels:
app: inline-resource
spec:
resourceClassName: example
parametersRef:
kind: ConfigMap
name: test-inline-claim-parameters
---
apiVersion: v1
kind: Pod
metadata:
name: test-inline-claim
spec:
restartPolicy: Never
containers:
- name: with-resource
image: registry.k8s.io/e2e-test-images/busybox:1.29-2
command: ["sh", "-c", "set && mount && ls -la /dev/"]
resources:
claims:
- name: resource
- name: without-resource
image: registry.k8s.io/e2e-test-images/busybox:1.29-2
command: ["sh", "-c", "set && mount && ls -la /dev/"]
resourceClaims:
- name: resource
source:
resourceClaimTemplateName: test-inline-claim-template