removing zeroconf /etc/distcc/hosts
This commit is contained in:
74
apps/distcc/deployment.yaml
Normal file
74
apps/distcc/deployment.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
labels:
|
||||
app: distcc
|
||||
release: stable
|
||||
name: distcc
|
||||
spec:
|
||||
serviceName: distcc
|
||||
replicas: 4
|
||||
selector:
|
||||
matchLabels:
|
||||
app: distcc
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: distcc
|
||||
release: stable
|
||||
spec:
|
||||
containers:
|
||||
- name: distcc
|
||||
image: cr.lan/distcc
|
||||
imagePullPolicy: Always
|
||||
#env:
|
||||
#- name: OPTIONS
|
||||
# value: "--verbose"
|
||||
ports:
|
||||
- containerPort: 3632
|
||||
name: distcc-data
|
||||
protocol: TCP
|
||||
- containerPort: 3633
|
||||
name: distcc-stats
|
||||
protocol: TCP
|
||||
resources:
|
||||
limits:
|
||||
cpu: 4
|
||||
memory: 128Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- distcc
|
||||
topologyKey: kubernetes.io/hostname
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: distcc
|
||||
release: stable
|
||||
name: distcc
|
||||
spec:
|
||||
ports:
|
||||
- name: distcc-data
|
||||
port: 3632
|
||||
targetPort: 3632
|
||||
protocol: TCP
|
||||
- name: distcc-stats
|
||||
port: 3633
|
||||
targetPort: 3633
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: distcc
|
||||
Reference in New Issue
Block a user