apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: unifi-network-application
|
|
app.kubernetes.io/component: unifi-network-application
|
|
app.kubernetes.io/instance: unifi-network-application
|
|
name: unifi-network-application
|
|
namespace: unifi-server
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
deployment: unifi-network-application
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
openshift.io/generated-by: OpenShiftNewApp
|
|
creationTimestamp: null
|
|
labels:
|
|
deployment: unifi-network-application
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: "Etc/UTC"
|
|
- name: MONGO_USER
|
|
value: "unifi"
|
|
- name: MONGO_PASS
|
|
value: "Rey-1176"
|
|
- name: MONGO_HOST
|
|
value: "mongodb"
|
|
- name: MONGO_PORT
|
|
value: "27017"
|
|
- name: MONGO_DBNAME
|
|
value: "unifi"
|
|
- name: MONGO_AUTHSOURCE
|
|
value: "admin"
|
|
- name: MONGO_SSL
|
|
value: "True"
|
|
image: linuxserver/unifi-network-application@sha256:f9ae7f54f094d047fea9d21533c56c204a0b22b4ebc7b5acdc9325c35c1b1f51
|
|
imagePullPolicy: IfNotPresent
|
|
name: unifi-network-application
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
- containerPort: 8443
|
|
protocol: TCP
|
|
- containerPort: 8843
|
|
protocol: TCP
|
|
- containerPort: 8880
|
|
protocol: TCP
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: unifi-network-application-volume-1
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- name: unifi-network-application-volume-1
|
|
persistentVolumeClaim:
|
|
claimName: unifi-network-application-volume-1
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: unifi-network-application
|
|
app.kubernetes.io/component: unifi-network-application
|
|
app.kubernetes.io/instance: unifi-network-application
|
|
name: unifi-network-application
|
|
namespace: unifi-server
|
|
spec:
|
|
ports:
|
|
- name: 8080-tcp
|
|
port: 8080
|
|
protocol: TCP
|
|
targetPort: 8080
|
|
- name: 8443-tcp
|
|
port: 8443
|
|
protocol: TCP
|
|
targetPort: 8443
|
|
- name: 8843-tcp
|
|
port: 8843
|
|
protocol: TCP
|
|
targetPort: 8843
|
|
- name: 8880-tcp
|
|
port: 8880
|
|
protocol: TCP
|
|
targetPort: 8880
|
|
selector:
|
|
deployment: unifi-network-application
|
|
sessionAffinity: None
|
|
type: ClusterIP
|