Remove ReservedAnnotations from kube generate specification

Reserved annotations are used internally by Podman and would effect
nothing when run with Kubernetes so we should not be generating these
annotations.

Fixes: https://github.com/containers/podman/issues/17105

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2023-01-17 13:55:24 -05:00
parent 281ccbf5ee
commit ef3f098796
9 changed files with 28 additions and 29 deletions

View File

@ -77,9 +77,7 @@ spec:
ports:
- containerPort: 3306
hostPort: 36533
resources: {}
tty: true
status: {}
```
Create Kubernetes Pod YAML for a container with the directory `/home/user/my-data` on the host bind-mounted in the container to `/volume`.
@ -102,7 +100,6 @@ spec:
- /bin/sh
image: docker.io/library/alpine:latest
name: test-bind-mount
resources: {}
volumeMounts:
- mountPath: /volume
name: home-user-my-data-host
@ -112,7 +109,6 @@ spec:
path: /home/user/my-data
type: Directory
name: home-user-my-data-host
status: {}
```
Create Kubernetes Pod YAML for a container with the named volume `priceless-data` mounted in the container at `/volume`.
@ -135,7 +131,6 @@ spec:
- /bin/sh
image: docker.io/library/alpine:latest
name: test-bind-mount
resources: {}
volumeMounts:
- mountPath: /volume
name: priceless-data-pvc
@ -144,7 +139,6 @@ spec:
- name: priceless-data-pvc
persistentVolumeClaim:
claimName: priceless-data
status: {}
```
Create Kubernetes Pod YAML for a pod called `demoweb` and include a service.
@ -168,10 +162,8 @@ spec:
- /root/code/graph.py
image: quay.io/baude/demoweb:latest
name: practicalarchimedes
resources: {}
tty: true
workingDir: /root/code
status: {}
---
apiVersion: v1
kind: Service