You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
1.8 KiB
86 lines
1.8 KiB
# Deployment description
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: docker-gui
|
|
namespace: infra-environment
|
|
labels:
|
|
app: docker-gui
|
|
spec:
|
|
strategy:
|
|
type: Recreate
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: docker-gui
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: docker-gui
|
|
spec:
|
|
containers:
|
|
- name: docker-gui
|
|
image: joxit/docker-registry-ui
|
|
resources:
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "4"
|
|
ports:
|
|
- containerPort: 80
|
|
name: docker-gui-http
|
|
protocol: TCP
|
|
envFrom:
|
|
- configMapRef:
|
|
name: docker-gui-config
|
|
---
|
|
# ConfigMap description
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: docker-gui-config
|
|
namespace: infra-environment
|
|
labels:
|
|
app: docker-gui
|
|
data:
|
|
REGISTRY_URL: "http://docker-registry.semprod.local:5000/"
|
|
REGISTRY_TITLE: "SemApp docker registry proxy"
|
|
NGINX_PROXY_PASS_URL: "http://docker-registry.semprod.local/"
|
|
NGINX_PROXY_HEADER_Access-Control-Allow-Origin: "*"
|
|
|
|
---
|
|
# Service Description
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: docker-gui
|
|
namespace: infra-environment
|
|
spec:
|
|
selector:
|
|
app: docker-gui
|
|
ports:
|
|
- name: docker-gui-http
|
|
port: 80
|
|
targetPort: docker-gui-http
|
|
type: NodePort
|
|
---
|
|
|
|
# Ingress description
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: docker-gui-ingress
|
|
namespace: infra-environment
|
|
annotations:
|
|
kubernetes.io/ingress.class: "traefik"
|
|
spec:
|
|
rules:
|
|
- host: docker-gui.k8s.semprod.local
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: docker-gui
|
|
servicePort: 80
|