the pod yaml type error and add apiVersion
This commit is contained in:
committed by
Andrew Chen
parent
b9fa59644f
commit
f7edb82547
@@ -325,14 +325,15 @@ spec:
|
|||||||
**Pod spec after admission controller:**
|
**Pod spec after admission controller:**
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: guestbook
|
app: guestbook
|
||||||
tier: frontend
|
tier: frontend
|
||||||
annotations:
|
annotations:
|
||||||
podpreset.admission.kubernetes.io/podpreset-allow-database: "resource version"
|
podpreset.admission.kubernetes.io/podpreset-allow-database: "resource version"
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: php-redis
|
- name: php-redis
|
||||||
image: gcr.io/google_samples/gb-frontend:v3
|
image: gcr.io/google_samples/gb-frontend:v3
|
||||||
|
|||||||
Reference in New Issue
Block a user