mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-20 21:39:22 +00:00
⏫ Update a few deprecated apiVersions
This commit is contained in:
@@ -160,7 +160,7 @@ class: extra-details
|
||||
- Check that we can access the CSR API:
|
||||
```bash
|
||||
curl -k -H "Authorization: Bearer abcdef.1234567890abcdef" \
|
||||
https://10.96.0.1/apis/certificates.k8s.io/v1beta1/certificatesigningrequests
|
||||
https://10.96.0.1/apis/certificates.k8s.io/v1/certificatesigningrequests
|
||||
```
|
||||
|
||||
]
|
||||
|
||||
@@ -201,7 +201,7 @@ class: extra-details
|
||||
- This is what the manifest would look like:
|
||||
|
||||
```yaml
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: xyz
|
||||
|
||||
@@ -289,11 +289,11 @@ Here is an example showing how to check if `jean.doe` can `get` some `pods` in `
|
||||
|
||||
```bash
|
||||
kubectl -v9 create -f- <<EOF
|
||||
apiVersion: authorization.k8s.io/v1beta1
|
||||
apiVersion: authorization.k8s.io/v1
|
||||
kind: SubjectAccessReview
|
||||
spec:
|
||||
user: jean.doe
|
||||
group:
|
||||
groups:
|
||||
- foo
|
||||
- bar
|
||||
resourceAttributes:
|
||||
|
||||
@@ -318,7 +318,7 @@ The command above generates:
|
||||
- Generate and create the CSR resource:
|
||||
```bash
|
||||
kubectl apply -f - <<EOF
|
||||
apiVersion: certificates.k8s.io/v1beta1
|
||||
apiVersion: certificates.k8s.io/v1
|
||||
kind: CertificateSigningRequest
|
||||
metadata:
|
||||
name: user=jean.doe
|
||||
|
||||
Reference in New Issue
Block a user