Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
devops-intern-labs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Nam
devops-intern-labs
Commits
b5209872
Commit
b5209872
authored
Jan 17, 2024
by
Vũ Hoàng Nam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sample manifest file.
parent
28999032
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
81 additions
and
6 deletions
+81
-6
configmap.yml
Week6/configmap.yml
+14
-0
daemonset.yml
Week6/daemonset.yml
+1
-1
deployment.yml
Week6/deployment.yml
+7
-2
pod.yml
Week6/pod.yml
+20
-3
sercret.yml
Week6/sercret.yml
+7
-0
statefulset.yml
Week6/statefulset.yml
+32
-0
No files found.
Week6/configmap.yml
0 → 100644
View file @
b5209872
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
first-cm
data
:
key1
:
value1
key2
:
value2
fruits.json
:
|
{
"fruit": "Banana",
"size": "Large",
"color": "Red"
}
Week6/daemonset.yml
View file @
b5209872
...
...
@@ -16,7 +16,7 @@ spec:
spec
:
containers
:
-
name
:
hello-ctr
image
:
nigelpoulton/k8sbook:1.0
image
:
busybox
volumeMounts
:
-
name
:
varlog
mountPath
:
/var/log
...
...
Week6/deployment.yml
View file @
b5209872
...
...
@@ -5,7 +5,7 @@ metadata:
spec
:
replicas
:
2
selector
:
matchLabels
:
matchLabels
:
app
:
web-app
revisionHistoryLimit
:
5
progressDeadlineSeconds
:
300
...
...
@@ -22,6 +22,11 @@ spec:
spec
:
containers
:
-
name
:
hello-ctr
image
:
nigelpoulton/k8sbook:1.0
image
:
busybox
ports
:
-
containerPort
:
8080
resources
:
limits
:
memory
:
"
512Mi"
cpu
:
"
1000m"
Week6/pod.yml
View file @
b5209872
...
...
@@ -2,13 +2,22 @@ apiVersion: v1
kind
:
Pod
metadata
:
name
:
first-pod
namespace
:
default
labels
:
app
:
busybox
version
:
v1
zone
:
dev
spec
:
containers
:
-
name
:
hello-ctr
image
:
nigelpoulton/k8sbook:1.0
-
name
:
tool-kit
image
:
busybox
command
:
-
sleep
-
"
3600"
volumeMounts
:
-
name
:
fruits
mountPath
:
/mnt
readOnly
:
true
ports
:
-
containerPort
:
8080
resources
:
...
...
@@ -17,4 +26,12 @@ spec:
cpu
:
"
500m"
limits
:
memory
:
"
512Mi"
cpu
:
"
1000m"
\ No newline at end of file
cpu
:
"
1000m"
volumes
:
-
name
:
fruits
configMap
:
name
:
first-cm
items
:
-
key
:
fruits.json
path
:
data.json
\ No newline at end of file
Week6/sercret.yml
0 → 100644
View file @
b5209872
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
mysecret
type
:
Opaque
data
:
password
:
<Password>
Week6/statefulset.yml
0 → 100644
View file @
b5209872
apiVersion
:
apps/v1
kind
:
StatefulSet
metadata
:
name
:
mystatefulset
spec
:
selector
:
matchLabels
:
app
:
myapp
serviceName
:
<ServiceName>
replicas
:
2
template
:
metadata
:
labels
:
app
:
myapp
spec
:
containers
:
-
name
:
myapp
image
:
registry.k8s.io/nginx-slim:0.8
ports
:
-
containerPort
:
80
name
:
web
volumeMounts
:
-
name
:
www
mountPath
:
/usr/share/nginx/html
volumeClaimTemplates
:
-
metadata
:
name
:
www
spec
:
accessModes
:
[
"
ReadWriteOnce"
]
resources
:
requests
:
storage
:
1Gi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment