Skip to content

Commit

Permalink
more docs and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
OneideLuizSchneider committed Mar 27, 2024
1 parent 5eea975 commit 31af0ef
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 0 deletions.
32 changes: 32 additions & 0 deletions help/ReplicaSet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#### Examples:

```
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: my-rs
namespace: default
labels:
app: myapp
spec:
template:
metadata:
name: my-rs
labels:
app: myapp
spec:
containers:
- name: nginx
image: nginx:latest
replicas: 2
selector:
matchLabels:
app: myapp
```
29 changes: 29 additions & 0 deletions help/ReplicationController.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#### Examples:

```
apiVersion: v1
kind: ReplicationController
metadata:
name: my-rc
namespace: default
labels:
app: myapp
spec:
template:
metadata:
name: my-rc
labels:
app: myapp
spec:
containers:
- name: nginx
image: nginx:latest
replicas: 2
```
22 changes: 22 additions & 0 deletions help/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
strategy: {}
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
resources: {}
status: {}
7 changes: 7 additions & 0 deletions help/internal-dns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


Service Name . Namespace . Service . domain
`myservice.dev.svc.cluster.local`

Request Example:
`curl myservice.dev.svc.cluster.local:80`
12 changes: 12 additions & 0 deletions help/ns-quota.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: ResourceQuota
metadata:
name: compute-quota
namespace: staging
spec:
hard:
pods: "10"
requests.cpu: "4"
requests.memory: 5Gi
limits.cpu: "10"
limits.memory: 10Gi
23 changes: 23 additions & 0 deletions help/rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1

kind: ReplicationController

metadata:
name: my-rc
namespace: default
labels:
app: myapp


spec:
template:
metadata:
name: my-rc
labels:
app: myapp
spec:
containers:
- name: nginx
image: nginx:latest

replicas: 2
10 changes: 10 additions & 0 deletions help/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
selector:
app: myapp
ports:
- port: 80
targetPort: 80
4 changes: 4 additions & 0 deletions replication-controller.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#### Replication Controller

Replication Controller make sure to create all pods needed in a deployment for example in the cluster.

0 comments on commit 31af0ef

Please sign in to comment.