Harbor 에 자신만의 아무 이미지나 태그해서 업로드하고 다운로드 해보고, 관련 스샷 올려주세요
(repush:default) [root@kops-ec2 ~]# docker tag busybox harbor.$KOPS_CLUSTER_NAME/pkos/busybox:0.1
(repush:default) [root@kops-ec2 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 9eee96112def 4 days ago 142MB
busybox latest 66ba00ad3de8 5 weeks ago 4.87MB
harbor.repush.click/pkos/busybox 0.1 66ba00ad3de8 5 weeks ago 4.87MB
(repush:default) [root@kops-ec2 ~]# docker login harbor.$KOPS_CLUSTER_NAME -u admin -p Harbor12345
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
(repush:default) [root@kops-ec2 ~]# docker push harbor.$KOPS_CLUSTER_NAME/pkos/busybox:0.1
The push refers to repository [harbor.repush.click/pkos/busybox]
b64792c17e4a: Pushed
0.1: digest: sha256:907ca53d7e2947e849b839b1cd258c98fd3916c60f2e6e70c30edbf741ab6754 size: 528
(repush:default) [root@kops-ec2 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 9eee96112def 4 days ago 142MB
(repush:default) [root@kops-ec2 ~]# docker pull harbor.repush.click/pkos/busybox@sha256:907ca53d7e2947e849b839b1cd258c98fd3916c60f2e6e70c30edbf741ab6754
harbor.repush.click/pkos/busybox@sha256:907ca53d7e2947e849b839b1cd258c98fd3916c60f2e6e70c30edbf741ab6754: Pulling from pkos/busybox
205dae5015e7: Pull complete
Digest: sha256:907ca53d7e2947e849b839b1cd258c98fd3916c60f2e6e70c30edbf741ab6754
Status: Downloaded newer image for harbor.repush.click/pkos/busybox@sha256:907ca53d7e2947e849b839b1cd258c98fd3916c60f2e6e70c30edbf741ab6754
harbor.repush.click/pkos/busybox@sha256:907ca53d7e2947e849b839b1cd258c98fd3916c60f2e6e70c30edbf741ab6754
(repush:default) [root@kops-ec2 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 9eee96112def 4 days ago 142MB
harbor.repush.click/pkos/busybox <none> 66ba00ad3de8 5 weeks ago 4.87MB
(repush:default) [root@kops-ec2 ~]#
자신만의 텍스트 파일을 kops-ec2 로컬에서 Gitlab 에 올려보고, 관련 스샷 올려주세요
(repush:default) [root@kops-ec2 test-stg]# echo "gitlab test memo" >> test.txt
(repush:default) [root@kops-ec2 test-stg]# git add . && git commit -m "initial commit - add test.txt"
[main 3cfb782] initial commit - add test.txt
1 file changed, 1 insertion(+)
create mode 100644 test.txt
(repush:default) [root@kops-ec2 test-stg]# git push
Username for 'https://gitlab.repush.click': repush
Password for 'https://repush@gitlab.repush.click':
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 2 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 296 bytes | 296.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To https://gitlab.repush.click/repush/test-stg.git
df298ff..3cfb782 main -> main
(repush:default) [root@kops-ec2 test-stg]#
ArgoCD 챕터인, 책 273페이지의 ‘Gitops 실습: 클러스터 설정 내역 변경과 깃 저장소 자동 반영’을 직접 스스로 실습해보고, 관련 스샷 올려주세요
(repush:default) [root@kops-ec2 ~]# argocd app set rabbitmq-helm --sync-policy automated
(repush:default) [root@kops-ec2 rabbitmq]# pwd
/root/gitlab-test/test-stg/rabbitmq
(repush:default) [root@kops-ec2 rabbitmq]# vi my-values.yaml
service:
## @param service.type Kubernetes Service type
##
type: ClusterIP
### 를 아래와 같이 변경
service:
## @param service.type Kubernetes Service type
##
type: LoadBalancer
(repush:default) [root@kops-ec2 rabbitmq]# git add . && git commit -m "add rabbitmq helm"
[main 4db99c5] add rabbitmq helm
1 file changed, 1 insertion(+), 1 deletion(-)
(repush:default) [root@kops-ec2 rabbitmq]# git push
Username for 'https://gitlab.repush.click': repush
Password for 'https://repush@gitlab.repush.click':
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 2 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 417 bytes | 417.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0), pack-reused 0
To https://gitlab.repush.click/repush/test-stg.git
a59ae56..4db99c5 main -> main
rabbitmq rabbitmq-helm ClusterIP 100.71.82.108 <none>
5672/TCP,4369/TCP,25672/TCP,15672/TCP 25m
rabbitmq rabbitmq-helm LoadBalancer 100.71.82.108 <pending>
5672:31475/TCP,4369:30755/TCP,25672:31249/TCP,15672:31109/TCP 26m