Skip to content

Commit

Permalink
feat(home-assistant): removed usbip-attach sidecar container
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Oct 2, 2024
1 parent 6a39f3f commit 59026b6
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 178 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,20 @@ spec:
- name: volsync
namespace: storage
values:
defaultPodOptions:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: nabucasa.feature.node.kubernetes.io/skyconnect
operator: Exists
annotations:
k8s.v1.cni.cncf.io/networks: |
[{
"name":"multus-iot",
"namespace": "kube-system",
"ips": ["192.168.101.254/24"]
}]
secret.reloader.stakater.com/reload: "home-assistant-emqx-init,home-assistant-secret"
securityContext:
runAsUser: 0
runAsGroup: 0
controllers:
home-assistant:
pod:
annotations:
k8s.v1.cni.cncf.io/networks: |
[{
"name":"multus-iot",
"namespace": "kube-system",
"ips": ["192.168.101.254/24"]
}]
secret.reloader.stakater.com/reload: "home-assistant-emqx-init,home-assistant-secret"
securityContext:
runAsUser: 0
runAsGroup: 0
containers:
app:
image:
Expand Down Expand Up @@ -146,20 +138,6 @@ spec:
mv /config/.hass-config/* /config/.hass-config/.* /config
rmdir /config/.hass-config/
fi
usbip-attach:
image:
repository: ghcr.io/prehor/usbip
tag: 6.6.31
restartPolicy: Always # Sidecar container
env:
USBIP_HOST: h1.${SECRET_DOMAIN}
lifecycle:
preStop:
exec:
command:
- /entrypoint.sh --detach
securityContext:
privileged: true
service:
app:
controller: home-assistant
Expand Down Expand Up @@ -206,20 +184,6 @@ spec:
subPath: ssh-privatekey
- path: /root/.ssh/known_hosts2
subPath: ssh-known-hosts
host-dev:
type: hostPath
hostPath: /dev
globalMounts:
- path: /dev
mountPropagation: HostToContainer
host-sys:
type: hostPath
hostPath: /sys
advancedMounts:
home-assistant:
usbip-attach:
- path: /sys
mountPropagation: Bidirectional
logs:
type: emptyDir
globalMounts:
Expand Down
1 change: 0 additions & 1 deletion kubernetes/main/apps/kube-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ resources:
- ./kube-vip/ks.yaml
- ./metrics-server/ks.yaml
- ./multus/ks.yaml
- ./node-feature-discovery/ks.yaml
- ./reloader/ks.yaml

This file was deleted.

This file was deleted.

44 changes: 0 additions & 44 deletions kubernetes/main/apps/kube-system/node-feature-discovery/ks.yaml

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/main/flux/repositories/helm/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ resources:
- ./k8tz.yaml
- ./jetstack.yaml
- ./metrics-server.yaml
- ./node-feature-discovery.yaml
- ./openebs-zfs-localpv.yaml
- ./openebs.yaml
- ./prometheus-community.yaml
Expand Down
10 changes: 0 additions & 10 deletions kubernetes/main/flux/repositories/helm/node-feature-discovery.yaml

This file was deleted.

0 comments on commit 59026b6

Please sign in to comment.