Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sl-config-center
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouwei
sl-config-center
Commits
9255d7b5
Commit
9255d7b5
authored
Dec 10, 2024
by
zhouwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部署配置文件
parent
ad977310
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
+13
-14
Dockerfile
Dockerfile
+0
-1
deployment.yaml
deployment.yaml
+7
-7
service.yaml
service.yaml
+4
-4
application.properties
src/main/resources/application.properties
+2
-2
No files found.
Dockerfile
View file @
9255d7b5
FROM
openjdk:8
FROM
openjdk:8
ARG
JAR_FILE=target/*.jar
ARG
JAR_FILE=target/*.jar
COPY
${JAR_FILE} app.jar
COPY
${JAR_FILE} app.jar
COPY
apiclient_key.pem apiclient_key.pem
ENTRYPOINT
["java","-jar","/app.jar"]
ENTRYPOINT
["java","-jar","/app.jar"]
\ No newline at end of file
deployment.yaml
View file @
9255d7b5
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
s
ecuritylink-us
er
name
:
s
l-config-cent
er
namespace
:
securitylink
namespace
:
securitylink
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
app
:
s
ecuritylink-us
er
app
:
s
l-config-cent
er
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
s
ecuritylink-us
er
app
:
s
l-config-cent
er
spec
:
spec
:
containers
:
containers
:
-
name
:
s
ecuritylink-us
er
-
name
:
s
l-config-cent
er
image
:
381492067916.dkr.ecr.ap-east-1.amazonaws.com/s
ecuritylink-us
er:latest
image
:
381492067916.dkr.ecr.ap-east-1.amazonaws.com/s
l-config-cent
er:latest
resources
:
resources
:
limits
:
limits
:
memory
:
"
2Gi"
memory
:
"
2Gi"
cpu
:
"
1000m"
cpu
:
"
1000m"
requests
:
requests
:
memory
:
"
500Mi"
memory
:
"
500Mi"
cpu
:
"
5
00m"
cpu
:
"
2
00m"
ports
:
ports
:
-
name
:
httpport
-
name
:
httpport
containerPort
:
8080
containerPort
:
8080
livenessProbe
:
livenessProbe
:
tcpSocket
:
tcpSocket
:
port
:
8080
port
:
8080
initialDelaySeconds
:
9
0
initialDelaySeconds
:
3
0
periodSeconds
:
10
periodSeconds
:
10
timeoutSeconds
:
5
timeoutSeconds
:
5
failureThreshold
:
5
failureThreshold
:
5
...
...
service.yaml
View file @
9255d7b5
...
@@ -3,7 +3,7 @@ apiVersion: v1
...
@@ -3,7 +3,7 @@ apiVersion: v1
kind
:
Service
kind
:
Service
metadata
:
metadata
:
namespace
:
securitylink
namespace
:
securitylink
name
:
s
ecuritylink-us
er
name
:
s
l-config-cent
er
spec
:
spec
:
ports
:
ports
:
-
port
:
8080
-
port
:
8080
...
@@ -11,13 +11,13 @@ spec:
...
@@ -11,13 +11,13 @@ spec:
protocol
:
TCP
protocol
:
TCP
type
:
NodePort
type
:
NodePort
selector
:
selector
:
app
:
s
ecuritylink-us
er
app
:
s
l-config-cent
er
---
---
apiVersion
:
networking.k8s.io/v1
apiVersion
:
networking.k8s.io/v1
kind
:
Ingress
kind
:
Ingress
metadata
:
metadata
:
namespace
:
securitylink
namespace
:
securitylink
name
:
ingress-s
ecuritylink-us
er
name
:
ingress-s
l-config-cent
er
annotations
:
annotations
:
alb.ingress.kubernetes.io/scheme
:
internet-facing
alb.ingress.kubernetes.io/scheme
:
internet-facing
alb.ingress.kubernetes.io/target-type
:
ip
alb.ingress.kubernetes.io/target-type
:
ip
...
@@ -30,6 +30,6 @@ spec:
...
@@ -30,6 +30,6 @@ spec:
pathType
:
Prefix
pathType
:
Prefix
backend
:
backend
:
service
:
service
:
name
:
s
ecuritylink-us
er
name
:
s
l-config-cent
er
port
:
port
:
number
:
8080
number
:
8080
\ No newline at end of file
src/main/resources/application.properties
View file @
9255d7b5
spring.application.name
=
configC
enter
spring.application.name
=
sl-config-c
enter
server.port
=
808
1
server.port
=
808
0
#spring.profiles.active=qa
#spring.profiles.active=qa
#server.servlet.context-path=/api
#server.servlet.context-path=/api
spring.cloud.config.server.git.uri
=
http://git.ssish.com/zhouwei/sl-config.git
spring.cloud.config.server.git.uri
=
http://git.ssish.com/zhouwei/sl-config.git
...
...
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