building an debian-stable image

This commit is contained in:
2021-02-22 13:08:48 +01:00
parent 3538f407e8
commit aaaf6fa29f
5 changed files with 132 additions and 30 deletions

View File

@@ -5,9 +5,8 @@ metadata:
app: distcc
release: stable
name: distcc
namespace: default
spec:
replicas: 5
replicas: 4
selector:
matchLabels:
app: distcc
@@ -21,7 +20,7 @@ spec:
spec:
containers:
- name: distcc
image: cr.lan/distcc:aarch64
image: cr.lan/distcc
imagePullPolicy: Always
#env:
#- name: OPTIONS
@@ -35,10 +34,10 @@ spec:
protocol: TCP
resources:
limits:
cpu: 1
cpu: 4
memory: 128Mi
requests:
cpu: 1
cpu: 50m
memory: 64Mi
dnsPolicy: ClusterFirst
restartPolicy: Always
@@ -55,26 +54,25 @@ spec:
values:
- distcc
topologyKey: kubernetes.io/hostname
---
apiVersion: v1
kind: Service
metadata:
labels:
app: distcc
release: stable
namespace: default
name: distcc
spec:
externalTrafficPolicy: Cluster
ports:
- name: distcc-data
port: 3632
targetPort: 3632
protocol: TCP
- name: distcc-stats
port: 3633
targetPort: 3633
protocol: TCP
selector:
app: distcc
type: LoadBalancer
#---
#apiVersion: v1
#kind: Service
#metadata:
# labels:
# app: distcc
# release: stable
# name: distcc
#spec:
# externalTrafficPolicy: Cluster
# ports:
# - name: distcc-data
# port: 3632
# targetPort: 3632
# protocol: TCP
# - name: distcc-stats
# port: 3633
# targetPort: 3633
# protocol: TCP
# selector:
# app: distcc
# type: LoadBalancer

View File

@@ -32,6 +32,16 @@ spec:
value: "1000"
- name: TZ
value: "Europe/Berlin"
- name: DB_TYPE
value: postgres
- name: DB_HOST
value: postgres.live-env.svc.cluster.local:5432
- name: DB_NAME
value: gitea
- name: DB_USER
value: gitea
- name: DB_PASSWD
value: giteaEu94XSS4gKpheSBoMsIs
volumeMounts:
- name: gitea
mountPath: /data

View File

@@ -45,12 +45,13 @@ spec:
script: |
#!/usr/bin/env bash
cd $(resources.inputs.source.path)
ls -al
export GOARCH=arm64
export GOPATH=/usr/src/gopath
export GOCACHE=/usr/src/gocache
go env
go get
make -j4 build CGO_ENABLED=1
go get github.com/sapcc/mosquitto-exporter
make -j4 build CGO_ENABLED=0
- name: build-and-push
image: gcr.io/kaniko-project/executor:arm64
command: