Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
python-build-script
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
python-build-script
Commits
30ed6b74
Commit
30ed6b74
authored
Sep 11, 2023
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial Commit
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
0 deletions
+62
-0
k8s-deploy-template.yaml
k8s-deploy-template.yaml
+45
-0
k8s-service-template.yaml
k8s-service-template.yaml
+17
-0
No files found.
k8s-deploy-template.yaml
0 → 100644
View file @
30ed6b74
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
${APP_NAME}
namespace
:
${NAMESPACE}
labels
:
app
:
${APP_NAME}
spec
:
replicas
:
${REPLICAS}
selector
:
matchLabels
:
app
:
${APP_NAME}
template
:
metadata
:
labels
:
app
:
${APP_NAME}
spec
:
affinity
:
nodeAffinity
:
requiredDuringSchedulingIgnoredDuringExecution
:
nodeSelectorTerms
:
-
matchExpressions
:
-
key
:
schbrain.deploy
operator
:
In
values
:
-
${NODE_TAG}
terminationGracePeriodSeconds
:
20
containers
:
-
name
:
${APP_NAME}
image
:
${IMAGE}
imagePullPolicy
:
IfNotPresent
resources
:
requests
:
memory
:
${MEMORY_REQUEST}
limits
:
memory
:
${MEMORY_LIMIT}
ports
:
-
name
:
service
containerPort
:
${PORT}
protocol
:
TCP
env
:
-
name
:
NODE_IP
valueFrom
:
fieldRef
:
fieldPath
:
status.hostIP
k8s-service-template.yaml
0 → 100644
View file @
30ed6b74
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
${SERVICE_NAME}
namespace
:
${NAMESPACE}
labels
:
app
:
${SERVICE_NAME}
annotations
:
service.beta.kubernetes.io/alibaba-cloud-loadbalancer-address-type
:
"
intranet"
spec
:
type
:
${SERVICE_MODE}
ports
:
-
name
:
service
port
:
${SERVICE_PORT}
targetPort
:
${SERVICE_PORT}
selector
:
app
:
${APP_NAME}
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