mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 22:08:47 +00:00
Fedora F40 removed python3 from the base container, to avoid such issues let's rely on the latest and greates official python container. Fixes: #10497 Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
31 lines
669 B
YAML
31 lines
669 B
YAML
# Copyright (c) 2020 Red Hat, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Define the pod for a http server app.
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: http-server
|
|
labels:
|
|
app: http-server-app
|
|
spec:
|
|
containers:
|
|
- name: http-server
|
|
image: docker.io/library/python:3
|
|
ports:
|
|
- containerPort: 8080
|
|
command: ["python3"]
|
|
args: [ "-m", "http.server", "8080"]
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
runAsNonRoot: true
|
|
runAsUser: 1000
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
runtimeClassName: ${KATA_RUNTIME}
|