Created
June 4, 2020 07:49
-
-
Save amimof/98fe12058c135fa0adf0b6867142beb8 to your computer and use it in GitHub Desktop.
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
--- | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: home-assistant | |
labels: | |
name: home-assistant | |
spec: | |
accessModes: | |
- "ReadWriteOnce" | |
resources: | |
requests: | |
storage: "5Gi" | |
storageClassName: slow | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: home-assistant | |
labels: | |
name: home-assistant | |
spec: | |
type: ClusterIP | |
publishNotReadyAddresses: false | |
ports: | |
- name: api | |
port: 8123 | |
protocol: TCP | |
targetPort: 8123 | |
selector: | |
name: home-assistant | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: home-assistant | |
labels: | |
name: home-assistant | |
spec: | |
replicas: 1 | |
strategy: | |
type: Recreate | |
selector: | |
matchLabels: | |
name: home-assistant | |
template: | |
metadata: | |
labels: | |
name: home-assistant | |
spec: | |
initContainers: | |
containers: | |
- name: home-assistant | |
image: "homeassistant/home-assistant:0.108.7" | |
imagePullPolicy: IfNotPresent | |
ports: | |
- name: api | |
containerPort: 8123 | |
protocol: TCP | |
livenessProbe: | |
httpGet: | |
path: / | |
port: api | |
scheme: HTTP | |
initialDelaySeconds: 60 | |
failureThreshold: 5 | |
timeoutSeconds: 10 | |
readinessProbe: | |
httpGet: | |
path: / | |
port: api | |
scheme: HTTP | |
initialDelaySeconds: 60 | |
failureThreshold: 5 | |
timeoutSeconds: 10 | |
env: | |
envFrom: | |
volumeMounts: | |
- mountPath: /config | |
name: config | |
securityContext: | |
runAsUser: 0 | |
resources: | |
{} | |
volumes: | |
- name: config | |
persistentVolumeClaim: | |
claimName: home-assistant | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: home-assistant | |
namespace: home-assistant | |
spec: | |
rules: | |
- host: hass.example.com | |
http: | |
paths: | |
- backend: | |
serviceName: home-assistant | |
servicePort: 8123 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment