버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

코드 블럭
[root@m-k8s gitea]# cd ~

# git 인증서 검증 비활성화
[root@m-k8s ~]# git config --global http.sslVerify false

# git 유저 정보 설정
[root@m-k8s ~]# git config --global user.name "gitea-admin"
[root@m-k8s ~]# git config --global user.email "gitea@local.domain"

[root@m-k8s ~]# git clone http://192.168.1.152:3000/gitea_admin/my_application.git
Cloning into 'my_application'...
warning: You appear to have cloned an empty repository
[root@m-k8s ~]# cd my_application
[root@m-k8s my_application]# vi mynginx.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: mynginx-deployment
  labels:
    app: mynginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: mynginx
  template:
    metadata:
      labels:
        app: mynginx
    spec:
      containers:
      - name: mynginx
        image: 192.168.1.202/library/myimage:latest ## 다음번 lb  ip 예측 (gitea ip +1)
        ports:
        - containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
  name: mynginx-service
spec:
  selector:
    app: mynginx
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80
  type: LoadBalancer

========================================================================
touch README.md
git init
git checkout -b main
git add README.md
git commit -m "first commit"
git remote add origin http://192.168.1.152:3000/gitea_admin/my_application.git
git push -u origin main
=====================================================================
[root@m-k8s my_application]# git add .
[root@m-k8s my_application]# git status
[root@m-k8s my_application]# git commit -m "myngnix manifest upload"
[master (root-commit) e7be4fc] myngnix manifest upload
 1 file changed, 34 insertions(+)

[root@m-k8s my_application]# git push origin main
Username for 'http://192.168.1.201:3000': gitea_admin
Password for 'http://gitea_admin@192.168.1.201:3000':
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 454 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: . Processing 1 references
remote: Processed 1 references in total
To http://192.168.1.201:3000/gitea_admin/my_application.git
 * [new branch]      master -> master

...