Created
November 28, 2023 21:23
-
-
Save dkolba/37293c08b824446f4479381f7c0cd9d6 to your computer and use it in GitHub Desktop.
LHCI on Docker-Desktop Kubernetes for Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: lhci | |
spec: | |
ports: | |
- name: 9001-tcp | |
port: 9001 | |
protocol: TCP | |
targetPort: 9001 | |
selector: | |
com.docker.project: lhci | |
type: LoadBalancer | |
status: | |
loadBalancer: {} | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
com.docker.project: lhci | |
name: lhci | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
com.docker.project: lhci | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
com.docker.project: lhci | |
spec: | |
containers: | |
- image: patrickhulce/lhci-server:latest | |
name: lhci | |
ports: | |
- containerPort: 9001 | |
protocol: TCP | |
volumeMounts: | |
- name: lhci-vol | |
mountPath: /data | |
env: | |
- name: LHCI_PORT | |
value: "9001" | |
resources: {} | |
volumes: | |
- name: lhci-vol | |
persistentVolumeClaim: | |
claimName: local-path-pvc | |
restartPolicy: Always | |
status: {} | |
--- | |
# | |
# PersistentVolume | |
# | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: local-path-pv | |
labels: | |
type: local | |
spec: | |
storageClassName: hostpath | |
capacity: | |
storage: 256Mi | |
accessModes: | |
- ReadWriteMany | |
hostPath: | |
# path: /tmp | |
path: /private/tmp | |
persistentVolumeReclaimPolicy: Retain | |
--- | |
# | |
# PersistentVolumeClaim | |
# | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: local-path-pvc | |
spec: | |
storageClassName: hostpath | |
accessModes: | |
- ReadWriteMany | |
resources: | |
requests: | |
storage: 256Mi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Keep in mind to remove
/tmp
or/private
from the shared folders list in Docker-Desktop and explicitly add/private/tmp
(otherwise the DB file will not be accessible from the host).