mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-29 05:22:37 +00:00
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.
46 lines
1.1 KiB
YAML
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
|