2 changed files with 89 additions and 23 deletions
@ -0,0 +1,75 @@ |
|||||
|
# Deployment description |
||||
|
apiVersion: apps/v1 |
||||
|
kind: Deployment |
||||
|
metadata: |
||||
|
name: minio-console-deployment |
||||
|
namespace: minio-dev-environment |
||||
|
labels: |
||||
|
app: minio-console-dev |
||||
|
spec: |
||||
|
strategy: |
||||
|
type: Recreate |
||||
|
replicas: 1 |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: minio-console-dev |
||||
|
template: |
||||
|
metadata: |
||||
|
labels: |
||||
|
app: minio-console-dev |
||||
|
spec: |
||||
|
containers: |
||||
|
- name: console |
||||
|
image: minio/console:v0.8.2 |
||||
|
args: |
||||
|
- server |
||||
|
resources: |
||||
|
requests: |
||||
|
memory: "512Mi" |
||||
|
cpu: "100m" |
||||
|
limits: |
||||
|
memory: "1Gi" |
||||
|
cpu: "4" |
||||
|
ports: |
||||
|
- containerPort: 9090 |
||||
|
name: minio-console |
||||
|
protocol: TCP |
||||
|
env: |
||||
|
- name: CONSOLE_PORT |
||||
|
value: "9090" |
||||
|
- name: CONSOLE_MINIO_SERVER |
||||
|
value: "http://minio-api-dev.k3s.semapp.lan" |
||||
|
--- |
||||
|
# Minio console Service |
||||
|
apiVersion: v1 |
||||
|
kind: Service |
||||
|
metadata: |
||||
|
name: minio-console |
||||
|
namespace: minio-dev-environment |
||||
|
spec: |
||||
|
selector: |
||||
|
app: minio-console-dev |
||||
|
ports: |
||||
|
- name: minio-console |
||||
|
port: 9090 |
||||
|
targetPort: minio-console |
||||
|
type: NodePort |
||||
|
--- |
||||
|
|
||||
|
# Ingress description |
||||
|
apiVersion: networking.k8s.io/v1beta1 |
||||
|
kind: Ingress |
||||
|
metadata: |
||||
|
name: minio-console-dev-ingress |
||||
|
namespace: minio-dev-environment |
||||
|
annotations: |
||||
|
kubernetes.io/ingress.class: "traefik" |
||||
|
spec: |
||||
|
rules: |
||||
|
- host: minio-console-dev.k3s.semapp.lan |
||||
|
http: |
||||
|
paths: |
||||
|
- path: / |
||||
|
backend: |
||||
|
serviceName: minio-console |
||||
|
servicePort: 9090 |
||||
Loading…
Reference in new issue