Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some error for ingress secret , And other typos. #2

Merged
merged 1 commit into from
Nov 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions CKS_Preparation_Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ Create TLS Certificate & key

```sh
openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout tls.key -out tls.crt -subj "/CN=learnwithgvr.com" -days 365
openssl req -nodes -new -x509 -keyout tls-ingress.key -out tls-ingress.crt -subj "/CN=learnwithgvr.com -days 365
```
Create a Secret
```sh
kubectl create secret tls learnwithgvr-sec --cert=tls.crt --key=tls
kubectl create secret -n ingresstest tls learnwithgvr-sec --cert=tls.crt --key=tls.key
```

Alternatively Apply this yaml
Expand All @@ -140,13 +139,13 @@ Alternatively Apply this yaml
apiVersion: v1
kind: Secret
metadata:
name: ingress-tls
name: learnwithgvr-sec
namespace: ingresstest
data:
tls.crt: |
$(base64-encoded cert data from tls-ingress.crt)
$(base64-encoded cert data from tls.crt)
tls.key: |
$(base64-encoded key data from tls-ingress.key)
$(base64-encoded key data from tls.key)
type: kubernetes.io/tls
---
apiVersion: networking.k8s.io/v1
Expand Down Expand Up @@ -195,7 +194,7 @@ spec:
podSelector: {}
policyTypes:
- Ingress
egress:
ingress:
- from:
- ipBlock:
cidr: 0.0.0.0/0
Expand Down Expand Up @@ -1106,7 +1105,7 @@ spec:

### 4.3 Use container runtime sandboxes in multi-tenant environments (e.g. gvisor, kata containers)

- Sandboxing is concept of isoloation of containers from Host
- Sandboxing is concept of isolation of containers from Host
- docker uses default SecComp profiles restrict previleges. Whitlist or Blacklist
- AppArmor finegrain control of that container can access. Whitlist or Blacklist
- If large number of apps in containers, then SecComp/AppArmor is not the case
Expand Down