50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
application: kube-ops-view
|
|
version: v0.12
|
|
name: kube-ops-view
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
application: kube-ops-view
|
|
template:
|
|
metadata:
|
|
labels:
|
|
application: kube-ops-view
|
|
version: v0.12
|
|
spec:
|
|
serviceAccount: kube-ops-view
|
|
containers:
|
|
- name: service
|
|
# see https://github.com/hjacobs/kube-ops-view/releases
|
|
image: hjacobs/kube-ops-view:0.12
|
|
args:
|
|
# remove this option to use built-in memory store
|
|
- --redis-url=redis://kube-ops-view-redis:6379
|
|
# example to add external links for nodes and pods
|
|
# - --node-link-url-template=https://kube-web-view.example.org/clusters/{cluster}/nodes/{name}
|
|
# - --pod-link-url-template=https://kube-web-view.example.org/clusters/{cluster}/namespaces/{namespace}/pods/{name}
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
timeoutSeconds: 1
|
|
resources:
|
|
limits:
|
|
cpu: 200m
|
|
memory: 100Mi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 50Mi
|
|
securityContext:
|
|
readOnlyRootFilesystem: true
|
|
runAsNonRoot: true
|
|
runAsUser: 1000
|