All checks were successful
continuous-integration/drone/push Build is passing
82 lines
1.7 KiB
YAML
82 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ntopng
|
|
labels:
|
|
app: registry-ui
|
|
release: ntopng
|
|
app/version: "1.2.1"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: registry-ui
|
|
release: ntopng
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: registry-ui
|
|
release: ntopng
|
|
spec:
|
|
containers:
|
|
- name: registry-ui
|
|
image: "docker-registry.lan/ntopng:arm64"
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: URL
|
|
value: "http://docker-registry.lan"
|
|
- name: REGISTRY_TITLE
|
|
value: "dReg"
|
|
- name: DELETE_IMAGES
|
|
value: "true"
|
|
- name: REGISTRY_URL
|
|
value: "http://ntopng.lan"
|
|
- name: PULL_URL
|
|
value: "http://docker-registry.lan"
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
resources:
|
|
{}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ntopng
|
|
labels:
|
|
app: registry-ui
|
|
release: ntopng
|
|
app/version: "1.2.1"
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
selector:
|
|
app: registry-ui
|
|
release: ntopng
|
|
---
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ntopng
|
|
spec:
|
|
rules:
|
|
- host: ntopng.lan
|
|
http:
|
|
paths:
|
|
- backend:
|
|
serviceName: ntopng
|
|
servicePort: http
|
|
path: /
|