From 413839b58ba669539d425f8a327f7a80ffde9eae Mon Sep 17 00:00:00 2001 From: kevinnls Date: Wed, 2 Sep 2026 23:24:04 +0530 Subject: [PATCH] generate k8s --- cookies.k8s.yml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 cookies.k8s.yml diff --git a/cookies.k8s.yml b/cookies.k8s.yml new file mode 100644 index 0000000..b466c25 --- /dev/null +++ b/cookies.k8s.yml @@ -0,0 +1,57 @@ +# Save the output of this file and use kubectl create -f to import +# it into Kubernetes. +# +# Created with podman-5.8.4 + +# NOTE: If you generated this yaml from an unprivileged and rootless podman container on an SELinux +# enabled system, check the podman generate kube man page for steps to follow to ensure that your pod/container +# has the right permissions to access the volumes added. +--- +apiVersion: v1 +kind: Pod +metadata: + annotations: + bind-mount-options: /home/kevinnlsamuel/project/cookies/www:z + creationTimestamp: "2026-09-02T17:51:20Z" + labels: + app: cookies-pod + name: cookies-pod +spec: + containers: + - args: + - nginx + - -g + - daemon off; + env: + - name: TERM + value: xterm + image: docker.io/library/nginx:alpine + name: cookies + ports: + - containerPort: 443 + hostPort: 8443 + tty: true + volumeMounts: + - mountPath: /etc/nginx/tls + name: home-kevinnlsamuel-project-cookies-tls-host-0 + readOnly: true + - mountPath: /etc/nginx/conf.d + name: home-kevinnlsamuel-project-cookies-conf.d-host-1 + readOnly: true + - mountPath: /srv/www + name: home-kevinnlsamuel-project-cookies-www-host-2 + readOnly: true + volumes: + - hostPath: + path: /home/kevinnlsamuel/project/cookies/tls + type: Directory + name: home-kevinnlsamuel-project-cookies-tls-host-0 + - hostPath: + path: /home/kevinnlsamuel/project/cookies/conf.d + type: Directory + name: home-kevinnlsamuel-project-cookies-conf.d-host-1 + - hostPath: + path: /home/kevinnlsamuel/project/cookies/www + type: Directory + name: home-kevinnlsamuel-project-cookies-www-host-2 +