Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
R
relation-graph
Project
Project
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
relation-graph
Commits
3f389244
Commit
3f389244
authored
Aug 16, 2021
by
盛金强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
205dcf00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
k8s.yaml
deploy/k8s.yaml
+63
-0
No files found.
deploy/k8s.yaml
0 → 100644
View file @
3f389244
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
labels
:
app
:
$APP_NAME
name
:
$APP_NAME
namespace
:
$NAMESPACE
spec
:
progressDeadlineSeconds
:
600
replicas
:
1
selector
:
matchLabels
:
app
:
$APP_NAME
template
:
metadata
:
labels
:
app
:
$APP_NAME
spec
:
containers
:
-
image
:
$REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:$BUILD_NUMBER
imagePullPolicy
:
Always
name
:
$APP_NAME
readinessProbe
:
httpGet
:
path
:
/
port
:
80
timeoutSeconds
:
10
failureThreshold
:
30
periodSeconds
:
5
ports
:
-
containerPort
:
80
protocol
:
TCP
resources
:
limits
:
cpu
:
200m
memory
:
500Mi
requests
:
cpu
:
100m
memory
:
100Mi
terminationMessagePath
:
/dev/termination-log
terminationMessagePolicy
:
File
dnsPolicy
:
ClusterFirst
restartPolicy
:
Always
terminationGracePeriodSeconds
:
30
---
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
app
:
$APP_NAME
name
:
$APP_NAME
namespace
:
$NAMESPACE
spec
:
ports
:
-
name
:
http
port
:
80
protocol
:
TCP
targetPort
:
80
selector
:
app
:
$APP_NAME
sessionAffinity
:
None
type
:
ClusterIP
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