kata-containers/tests/integration/kubernetes/runtimeclass_workloads/k8s-policy-pod.yaml
Saul Paredes 711d12e5db policy: support optional metadata uid field
This prevents a deserialization error when uid is specified

Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
2024-12-02 11:24:58 -08:00

61 lines
1.4 KiB
YAML

#
# Copyright (c) 2024 Microsoft
#
# SPDX-License-Identifier: Apache-2.0
#
apiVersion: v1
kind: Pod
metadata:
name: policy-pod
uid: policy-pod-uid
spec:
terminationGracePeriodSeconds: 0
runtimeClassName: kata
containers:
- name: prometheus
image: quay.io/prometheus/prometheus:latest
command:
- /bin/sh
env:
- name: KUBE_CONFIG_1
valueFrom:
configMapKeyRef:
name: policy-configmap
key: data-1
- name: KUBE_CONFIG_2
valueFrom:
configMapKeyRef:
name: policy-configmap
key: data-2
securityContext:
seccompProfile:
type: RuntimeDefault
livenessProbe:
exec:
command:
- echo
- livenessProbe
- test
failureThreshold: 1
periodSeconds: 5
timeoutSeconds: 10
readinessProbe:
exec:
command:
- "echo"
- "-n"
- "readinessProbe with space characters"
startupProbe:
exec:
command:
- echo
- startupProbe
- test
envFrom:
- configMapRef:
name: policy-configmap
topologySpreadConstraints:
- maxSkew: 2
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
priorityClassName: test-high-priority