mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-12 02:48:30 -05:00
Initial commit from private
This commit is contained in:
44
Hub/Service/deploy/service.yaml
Normal file
44
Hub/Service/deploy/service.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: hub-service
|
||||
namespace: home-monitor
|
||||
labels:
|
||||
app: hub-service
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hub-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hub-service
|
||||
spec:
|
||||
containers:
|
||||
- name: hub-service
|
||||
image: ckaczor/home-monitor-hub-service:latest
|
||||
terminationMessagePath: "/dev/termination-log"
|
||||
terminationMessagePolicy: File
|
||||
imagePullPolicy: Always
|
||||
securityContext:
|
||||
privileged: true
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
dnsPolicy: ClusterFirst
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: kubernetes
|
||||
schedulerName: default-scheduler
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: hub-service
|
||||
spec:
|
||||
ports:
|
||||
- name: client
|
||||
port: 80
|
||||
selector:
|
||||
app: hub-service
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user