Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
registory
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
fanqianjie
registory
Commits
2388d6c7
Commit
2388d6c7
authored
Mar 06, 2024
by
fanqianjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload a file
parent
36b64971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
0 deletions
+79
-0
cicd-demo.yaml
deploy/cicd-demo.yaml
+79
-0
No files found.
deploy/cicd-demo.yaml
0 → 100644
View file @
2388d6c7
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
labels
:
app
:
k8s-cicd-demo
component
:
wolfcode-devops
tier
:
backend
name
:
k8s-cicd-demo
namespace
:
ks-k8s-cicd-demo
spec
:
progressDeadlineSeconds
:
600
replicas
:
1
selector
:
matchLabels
:
app
:
k8s-cicd-demo
component
:
wolfcode-devops
tier
:
backend
strategy
:
rollingUpdate
:
maxSurge
:
100%
maxUnavailable
:
100%
type
:
RollingUpdate
template
:
metadata
:
labels
:
app
:
k8s-cicd-demo
component
:
wolfcode-devops
tier
:
backend
spec
:
imagePullSecrets
:
-
name
:
harbor-secret
containers
:
-
name
:
k8s-cicd-demo
image
:
REGISTRY/DOCKERHUB_NAMESPACE/APP_NAME:TAG_NAME
readinessProbe
:
httpGet
:
path
:
/users
port
:
8080
timeoutSeconds
:
10
failureThreshold
:
30
periodSeconds
:
5
imagePullPolicy
:
Always
ports
:
-
containerPort
:
8080
protocol
:
TCP
resources
:
limits
:
cpu
:
300m
memory
:
600Mi
requests
:
cpu
:
100m
memory
:
100Mi
terminationMessagePath
:
/dev/termination-log
terminationMessagePolicy
:
File
dnsPolicy
:
ClusterFirst
restartPolicy
:
Always
terminationGracePeriodSeconds
:
30
---
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
app
:
k8s-cicd-demo
component
:
wolfcode-devops
name
:
k8s-cicd-demo
namespace
:
ks-k8s-cicd-demo
spec
:
ports
:
-
name
:
http
port
:
8080
protocol
:
TCP
targetPort
:
8080
selector
:
app
:
k8s-cicd-demo
component
:
wolfcode-devops
tier
:
backend
sessionAffinity
:
None
type
:
NodePort
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