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
acfc3a97
Commit
acfc3a97
authored
Jan 12, 2024
by
Vũ Hoàng Nam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add daemonset.yml, deployment.yml, service.yml.
parent
54f7a7ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
0 deletions
+67
-0
daemonset.yml
Week6/daemonset.yml
+26
-0
deployment.yml
Week6/deployment.yml
+27
-0
service.yml
Week6/service.yml
+14
-0
No files found.
Week6/daemonset.yml
0 → 100644
View file @
acfc3a97
apiVersion
:
apps/v1
kind
:
DaemonSet
metadata
:
name
:
web-app-daemonset
namespace
:
default
labels
:
env
:
dev
spec
:
selector
:
matchLabels
:
name
:
web-app
template
:
metadata
:
labels
:
name
:
web-app
spec
:
containers
:
-
name
:
hello-ctr
image
:
nigelpoulton/k8sbook:1.0
volumeMounts
:
-
name
:
varlog
mountPath
:
/var/log
volumes
:
-
name
:
varlog
hostPath
:
path
:
/var/log
\ No newline at end of file
Week6/deployment.yml
0 → 100644
View file @
acfc3a97
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
web-app-deployment
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
web-app
revisionHistoryLimit
:
5
progressDeadlineSeconds
:
300
minReadySeconds
:
10
strategy
:
type
:
RollingUpdate
rollingUpdate
:
maxUnavailable
:
1
maxSurge
:
1
template
:
metadata
:
labels
:
app
:
web-app
spec
:
containers
:
-
name
:
hello-ctr
image
:
nigelpoulton/k8sbook:1.0
ports
:
-
containerPort
:
8080
Week6/service.yml
0 → 100644
View file @
acfc3a97
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
hello-svc
labels
:
app
:
web-app
spec
:
type
:
NodePort
ports
:
-
port
:
8080
nodePort
:
30001
protocol
:
TCP
selector
:
app
:
web-app
\ No newline at end of file
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