mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-21 09:25:19 +00:00
This prevents a deserialization error when uid is specified Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
61 lines
1.4 KiB
YAML
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 |