Skip to content

Commit

Permalink
basic objects
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 23, 2021
1 parent 54fe988 commit 8d1d53d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
21 changes: 21 additions & 0 deletions basic-objects/deployment/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
10 changes: 10 additions & 0 deletions basic-objects/pod/pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Pod
metadata:
name: my-first-app
labels:
type: front-end
spec:
containers:
- name: nginx
image: nginx
20 changes: 20 additions & 0 deletions basic-objects/replica/replicaset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: my-rs
labels:
type: front-end
spec:
template:
metadata:
name: my-pod
labels:
type: front-end
spec:
containers:
- name: nginx
image: nginx
replicas: 6
selector:
matchLabels:
type: front-end

0 comments on commit 8d1d53d

Please sign in to comment.