Last active
January 19, 2018 09:24
-
-
Save moondev/bb4f73e812b98a8db59dd4cfa1a34aac to your computer and use it in GitHub Desktop.
nginx-app
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: unifi-svc | |
labels: | |
app: unifi-app | |
spec: | |
ports: | |
- port: 8080 | |
type: NodePort | |
selector: | |
app: unifi-app | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: unifi-pv-claim | |
labels: | |
app: unifi-app | |
spec: | |
storageClassName: rook-block | |
accessModes: | |
- ReadWriteMany | |
resources: | |
requests: | |
storage: 1Gi | |
--- | |
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: unifi-app | |
labels: | |
app: unifi-app | |
spec: | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: unifi-app | |
spec: | |
containers: | |
- image: jacobalberty/unifi:stable | |
name: unifi | |
ports: | |
- containerPort: 8080 | |
name: web | |
- containerPort: 8443 | |
name: tls | |
- containerPort: 3478 | |
name: udpstuff | |
volumeMounts: | |
- name: unifi-persistent-storage | |
mountPath: /unifi | |
volumes: | |
- name: unifi-persistent-storage | |
persistentVolumeClaim: | |
claimName: unifi-pv-claim | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: unifi-app | |
namespace: default | |
spec: | |
rules: | |
- host: unifi.192.168.1.30.xip.io | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: unifi-svc | |
servicePort: 8080 | |
#docker run --rm --init -p 8080:8080 -p 8443:8443 -p 3478:3478/udp -p 10001:10001/udp -e TZ='Africa/Johannesburg' -v ~/unifi:/unifi --name unifi jacobalberty/unifi:stable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment