Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
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
JooHan Hong
joohanhong
Commits
cc74f38b
Commit
cc74f38b
authored
Mar 19, 2021
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
k8s ci_cd update
parent
02eca8e3
Pipeline
#5257
passed with stages
in 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
README.md
DEVELOPMENT/CI_CD/K8S/README.md
+10
-6
k8s-dashboard-console.png
DEVELOPMENT/CI_CD/K8S/images/k8s-dashboard-console.png
+0
-0
No files found.
DEVELOPMENT/CI_CD/K8S/README.md
View file @
cc74f38b
...
@@ -123,7 +123,7 @@ push:
...
@@ -123,7 +123,7 @@ push:
only
:
only
:
-
deploy
-
deploy
script
:
script
:
-
docker
login
-
u
juhanida21
@
nate
.
com
-
p
$
GITLAB_TOKEN
registry
.
hongsnet
.
net
-
/
usr
/
bin
/
docker
login
-
u
juhanida21
@
nate
.
com
-
p
$
GITLAB_TOKEN
registry
.
hongsnet
.
net
-
/
usr
/
bin
/
docker
tag
hongsnet
-
dev
:
$
BUILD_SHA_RESULT
registry
.
hongsnet
.
net
/
joohan
.
hong
/
docker
/
hongsnet
:
$
BUILD_VERSION
-
/
usr
/
bin
/
docker
tag
hongsnet
-
dev
:
$
BUILD_SHA_RESULT
registry
.
hongsnet
.
net
/
joohan
.
hong
/
docker
/
hongsnet
:
$
BUILD_VERSION
-
/
usr
/
bin
/
docker
push
registry
.
hongsnet
.
net
/
joohan
.
hong
/
docker
/
hongsnet
:
$
BUILD_VERSION
-
/
usr
/
bin
/
docker
push
registry
.
hongsnet
.
net
/
joohan
.
hong
/
docker
/
hongsnet
:
$
BUILD_VERSION
tags
:
tags
:
...
@@ -134,10 +134,10 @@ deploy:
...
@@ -134,10 +134,10 @@ deploy:
only
:
only
:
-
deploy
-
deploy
script
:
script
:
-
docker
login
-
u
juhanida21
@
nate
.
com
-
p
$
GITLAB_TOKEN
registry
.
hongsnet
.
net
-
/
usr
/
bin
/
docker
login
-
u
juhanida21
@
nate
.
com
-
p
$
GITLAB_TOKEN
registry
.
hongsnet
.
net
-
kubectl
set
image
deployment
/
hongsnet
-
web
hongsnet
-
web
=
registry
.
hongsnet
.
net
/
joohan
.
hong
/
docker
/
hongsnet
:
$
BUILD_VERSION
-
/
usr
/
bin
/
kubectl
set
image
deployment
/
hongsnet
-
web
hongsnet
-
web
=
registry
.
hongsnet
.
net
/
joohan
.
hong
/
docker
/
hongsnet
:
$
BUILD_VERSION
-
kubectl
rollout
history
deployment
/
hongsnet
-
web
-
/
usr
/
bin
/
kubectl
rollout
history
deployment
/
hongsnet
-
web
-
kubectl
rollout
status
deployment
/
hongsnet
-
web
-
/
usr
/
bin
/
kubectl
rollout
status
deployment
/
hongsnet
-
web
tags
:
tags
:
-
backup
-
backup
...
@@ -148,7 +148,7 @@ build:
...
@@ -148,7 +148,7 @@ build:
script
:
script
:
-
cd
/
DATA
/
DOCKERS
/
hongsnet
-
dev
;
docker
-
compose
down
-
cd
/
DATA
/
DOCKERS
/
hongsnet
-
dev
;
docker
-
compose
down
-
cd
$
{
BUILD_IMAGE
}
-
cd
$
{
BUILD_IMAGE
}
-
docker
build
--
rm
-
t
hongsnet
-
dev
:
$
BUILD_SHA
.
-
/
usr
/
bin
/
docker
build
--
rm
-
t
hongsnet
-
dev
:
$
BUILD_SHA
.
-
(
if
[[
`docker images -f "dangling=true" -q`
!=
""
]];
then
docker
rmi
$
(
docker
images
-
f
"dangling=true"
-
q
);
fi
);
-
(
if
[[
`docker images -f "dangling=true" -q`
!=
""
]];
then
docker
rmi
$
(
docker
images
-
f
"dangling=true"
-
q
);
fi
);
-
(
rm
-
rf
/
DATA
/
DOCKERS
/
hongsnet
-
dev
/
docker
-
compose
.
yml
;
cp
-
rf
/
DATA
/
DOCKERS
/
hongsnet
-
dev
/
docker
-
compose
.
yml_init
/
DATA
/
DOCKERS
/
hongsnet
-
dev
/
docker
-
compose
.
yml
);
-
(
rm
-
rf
/
DATA
/
DOCKERS
/
hongsnet
-
dev
/
docker
-
compose
.
yml
;
cp
-
rf
/
DATA
/
DOCKERS
/
hongsnet
-
dev
/
docker
-
compose
.
yml_init
/
DATA
/
DOCKERS
/
hongsnet
-
dev
/
docker
-
compose
.
yml
);
-
(
sed
's/init/$BUILD_SHA/g'
-
i
/
DATA
/
DOCKERS
/
hongsnet
-
dev
/
docker
-
compose
.
yml
);
-
(
sed
's/init/$BUILD_SHA/g'
-
i
/
DATA
/
DOCKERS
/
hongsnet
-
dev
/
docker
-
compose
.
yml
);
...
@@ -292,3 +292,7 @@ imagePullPolicy: IfNotPresent
...
@@ -292,3 +292,7 @@ imagePullPolicy: IfNotPresent
![
container_dev
](
./images/k8s-dashboard-ci_cd.png
)
![
container_dev
](
./images/k8s-dashboard-ci_cd.png
)
-
**Pod Update 확인**
![
container_update
](
./images/k8s-dashboard-console.png
)
DEVELOPMENT/CI_CD/K8S/images/k8s-dashboard-console.png
0 → 100644
View file @
cc74f38b
27.1 KB
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