|
@ -1,35 +1,35 @@ |
|
|
apiVersion: apps/v1 |
|
|
apiVersion: apps/v1 |
|
|
kind: Deployment |
|
|
kind: Deployment |
|
|
metadata: |
|
|
metadata: |
|
|
name: minio-api |
|
|
name: Name-For-Replace |
|
|
namespace: service |
|
|
namespace: service |
|
|
labels: |
|
|
labels: |
|
|
app: minio-api |
|
|
app: Name-For-Replace |
|
|
spec: |
|
|
spec: |
|
|
replicas: 1 |
|
|
replicas: 1 |
|
|
revisionHistoryLimit: 5 |
|
|
revisionHistoryLimit: 5 |
|
|
selector: |
|
|
selector: |
|
|
matchLabels: |
|
|
matchLabels: |
|
|
app: minio-api |
|
|
app: Name-For-Replace |
|
|
template: |
|
|
template: |
|
|
metadata: |
|
|
metadata: |
|
|
labels: |
|
|
labels: |
|
|
app: minio-api |
|
|
app: Name-For-Replace |
|
|
spec: |
|
|
spec: |
|
|
containers: |
|
|
containers: |
|
|
- name: minio-api |
|
|
- name: Name-For-Replace |
|
|
image: harbor125.gxxhygroup.com/service/minio-api:latest |
|
|
image: harbor125.gxxhygroup.com/Type-For-Replace/Name-For-Replace:latest |
|
|
imagePullPolicy: Always |
|
|
imagePullPolicy: Always |
|
|
ports: |
|
|
ports: |
|
|
- containerPort: 8801 |
|
|
- containerPort: 8888 |
|
|
readinessProbe: |
|
|
readinessProbe: |
|
|
tcpSocket: |
|
|
tcpSocket: |
|
|
port: 8801 |
|
|
port: 8888 |
|
|
initialDelaySeconds: 5 |
|
|
initialDelaySeconds: 5 |
|
|
periodSeconds: 10 |
|
|
periodSeconds: 10 |
|
|
livenessProbe: |
|
|
livenessProbe: |
|
|
tcpSocket: |
|
|
tcpSocket: |
|
|
port: 8801 |
|
|
port: 8888 |
|
|
initialDelaySeconds: 15 |
|
|
initialDelaySeconds: 15 |
|
|
periodSeconds: 20 |
|
|
periodSeconds: 20 |
|
|
resources: |
|
|
resources: |
|
@ -52,29 +52,29 @@ spec: |
|
|
apiVersion: v1 |
|
|
apiVersion: v1 |
|
|
kind: Service |
|
|
kind: Service |
|
|
metadata: |
|
|
metadata: |
|
|
name: minio-api-svc |
|
|
name: Name-For-Replace-svc |
|
|
namespace: service |
|
|
namespace: service |
|
|
spec: |
|
|
spec: |
|
|
ports: |
|
|
ports: |
|
|
- port: 8801 |
|
|
- port: 8888 |
|
|
targetPort: 8801 |
|
|
targetPort: 8888 |
|
|
selector: |
|
|
selector: |
|
|
app: minio-api |
|
|
app: Name-For-Replace |
|
|
|
|
|
|
|
|
--- |
|
|
--- |
|
|
|
|
|
|
|
|
apiVersion: autoscaling/v2 |
|
|
apiVersion: autoscaling/v2 |
|
|
kind: HorizontalPodAutoscaler |
|
|
kind: HorizontalPodAutoscaler |
|
|
metadata: |
|
|
metadata: |
|
|
name: minio-api-hpa-c |
|
|
name: Name-For-Replace-hpa-c |
|
|
namespace: service |
|
|
namespace: service |
|
|
labels: |
|
|
labels: |
|
|
app: minio-api-hpa-c |
|
|
app: Name-For-Replace-hpa-c |
|
|
spec: |
|
|
spec: |
|
|
scaleTargetRef: |
|
|
scaleTargetRef: |
|
|
apiVersion: apps/v1 |
|
|
apiVersion: apps/v1 |
|
|
kind: Deployment |
|
|
kind: Deployment |
|
|
name: minio-api |
|
|
name: Name-For-Replace |
|
|
minReplicas: 1 |
|
|
minReplicas: 1 |
|
|
maxReplicas: 10 |
|
|
maxReplicas: 10 |
|
|
metrics: |
|
|
metrics: |
|
@ -90,15 +90,15 @@ spec: |
|
|
apiVersion: autoscaling/v2 |
|
|
apiVersion: autoscaling/v2 |
|
|
kind: HorizontalPodAutoscaler |
|
|
kind: HorizontalPodAutoscaler |
|
|
metadata: |
|
|
metadata: |
|
|
name: minio-api-hpa-m |
|
|
name: Name-For-Replace-hpa-m |
|
|
namespace: service |
|
|
namespace: service |
|
|
labels: |
|
|
labels: |
|
|
app: minio-api-hpa-m |
|
|
app: Name-For-Replace-hpa-m |
|
|
spec: |
|
|
spec: |
|
|
scaleTargetRef: |
|
|
scaleTargetRef: |
|
|
apiVersion: apps/v1 |
|
|
apiVersion: apps/v1 |
|
|
kind: Deployment |
|
|
kind: Deployment |
|
|
name: minio-api |
|
|
name: Name-For-Replace |
|
|
minReplicas: 1 |
|
|
minReplicas: 1 |
|
|
maxReplicas: 10 |
|
|
maxReplicas: 10 |
|
|
metrics: |
|
|
metrics: |
|
@ -112,17 +112,18 @@ spec: |
|
|
kind: Ingress |
|
|
kind: Ingress |
|
|
apiVersion: networking.k8s.io/v1 |
|
|
apiVersion: networking.k8s.io/v1 |
|
|
metadata: |
|
|
metadata: |
|
|
name: minio-api |
|
|
name: Name-For-Replace |
|
|
namespace: service |
|
|
namespace: service |
|
|
spec: |
|
|
spec: |
|
|
rules: |
|
|
rules: |
|
|
- host: minio-api-dev.gxxhygroup.com |
|
|
- host: Name-For-Replace-dev.gxxhygroup.com |
|
|
http: |
|
|
http: |
|
|
paths: |
|
|
paths: |
|
|
- path: / |
|
|
- path: / |
|
|
pathType: ImplementationSpecific |
|
|
pathType: ImplementationSpecific |
|
|
backend: |
|
|
backend: |
|
|
service: |
|
|
service: |
|
|
name: minio-api-svc |
|
|
name: Name-For-Replace-svc |
|
|
port: |
|
|
port: |
|
|
number: 8801 |
|
|
number: 8888 |
|
|
|
|
|
|
|
|