feat: 添加了 imager 工具 package
refactor: 将 images 的获取分散到各个组件里面
This commit is contained in:
@@ -33,6 +33,10 @@ server {
|
||||
|
||||
client_max_body_size 50M;
|
||||
|
||||
location /api/v2_2 {
|
||||
proxy_pass http://u-api-service;
|
||||
}
|
||||
|
||||
location /api/v1/pkg/archive {
|
||||
proxy_pass http://u-api-service/api/v2_2/client/download/check;
|
||||
}
|
||||
@@ -144,12 +148,16 @@ server {
|
||||
|
||||
client_max_body_size 50M;
|
||||
|
||||
location /api/v2_2 {
|
||||
proxy_pass http://u-api-service;
|
||||
}
|
||||
|
||||
location /api/v1/pkg/archive {
|
||||
proxy_pass http://u-api-service/api/v2_2/client/download/check;
|
||||
}
|
||||
|
||||
location /api/v1/pkg/archive/version {
|
||||
proxy_pass http://u-api-service/api/v2_2/client/download/version;
|
||||
proxy_pass http://u-api-service/api/v2_2/client/version;
|
||||
}
|
||||
|
||||
location /api/v1/version {
|
||||
|
||||
@@ -43,6 +43,10 @@ server {
|
||||
proxy_pass http://u-api-service;
|
||||
}
|
||||
|
||||
location /api/v2_2/system {
|
||||
proxy_pass http://u-api-service;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://front-user-service;
|
||||
}
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
//go:embed yaml/registry.yaml
|
||||
YAMLRegistry string
|
||||
|
||||
//go:embed yaml/flannel.yaml
|
||||
YAMLFlannel string
|
||||
|
||||
|
||||
102
pkg/resource/yaml/registry.yaml
Normal file
102
pkg/resource/yaml/registry.yaml
Normal file
@@ -0,0 +1,102 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: db-registry
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: registry-pvc
|
||||
namespace: db-registry
|
||||
spec:
|
||||
storageClassName: longhorn
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: %s
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: registry
|
||||
namespace: db-registry
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: registry
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: registry
|
||||
spec:
|
||||
containers:
|
||||
- name: registry
|
||||
image: docker.io/library/registry:2.8.3
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/registry
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: registry-pvc
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: registry
|
||||
namespace: db-registry
|
||||
spec:
|
||||
clusterIP: 10.96.123.45
|
||||
type: NodePork
|
||||
selector:
|
||||
app: registry
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 5000
|
||||
nodePort: 30500
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: registry-ui
|
||||
namespace: db-registry
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: registry-ui
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: registry-ui
|
||||
spec:
|
||||
containers:
|
||||
- name: registry
|
||||
image: docker.io/quiq/registry-ui:0.11.0
|
||||
env:
|
||||
- name: REGISTRY_HOSTNAME
|
||||
value: "registry:80"
|
||||
- name: REGISTRY_INSECURE
|
||||
value: "true"
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: registry-ui
|
||||
namespace: db-registry
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: registry-ui
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
Reference in New Issue
Block a user