Compare commits
93 Commits
zwave2mqtt
...
741698526f
| Author | SHA1 | Date | |
|---|---|---|---|
| 741698526f | |||
| f740ce7ffa | |||
| 223729647b | |||
| 5a577afdd5 | |||
| c46975c112 | |||
| 40c9df0bea | |||
| 8773365477 | |||
| 08f48796e8 | |||
| 8f5d268fdc | |||
| 7a1400e1f1 | |||
| 3506a17bc7 | |||
| 07ca7a7833 | |||
| 8365cebcb9 | |||
| 7d50c1df5c | |||
| 65e679cea6 | |||
| deb3c618fe | |||
| 03938dc864 | |||
| bb56ea5b39 | |||
| f1c5493d95 | |||
| 173c2a9d01 | |||
| b18dea273f | |||
| bfc01803a2 | |||
| a625c7351e | |||
| 6e58e75668 | |||
| cc66ee9eae | |||
| aa55a0314e | |||
| 96ec8b5555 | |||
| 9431f73ead | |||
| 5912fd84f0 | |||
| f6a0f2af5e | |||
| 56fd09b49d | |||
| 4325eff624 | |||
| ec3e530a36 | |||
| eaa5d94a72 | |||
| 033118eb89 | |||
| 8bf0fe5f10 | |||
| d26981cd78 | |||
| 878359e846 | |||
| a4b1be1bc2 | |||
| e9212313d6 | |||
| 6582f5093a | |||
| f1fc18a594 | |||
| aea6550d6e | |||
| d4cc44a1ea | |||
| aaaf6fa29f | |||
| 3538f407e8 | |||
| 276e41fde2 | |||
| b25f6ca608 | |||
| b66179023a | |||
| a397bdc71e | |||
| 4ec401f348 | |||
| fd569d894a | |||
| ed3e8cdddc | |||
| 9cda7c9f76 | |||
| c094e99451 | |||
| 5a16e4cf40 | |||
| be069c53bf | |||
| ce329ca353 | |||
| b45a4489fc | |||
| 1ac9cc0b4c | |||
| 38cac7a57f | |||
| 9dd3b2b4e0 | |||
| 0f6c04a0f0 | |||
| 3a28bebcda | |||
| f17dea5dff | |||
| 1a42071c26 | |||
| 0e79b36875 | |||
| c918c39e6e | |||
| 5932220ead | |||
| 36fa98e78b | |||
| 6b7b23dd71 | |||
| b131b76916 | |||
| fb33950bc8 | |||
| 3970c20e3a | |||
| 1cc1de7ed8 | |||
| b91ea42a41 | |||
| f616346ac6 | |||
| 315520baa6 | |||
| 76c036fa79 | |||
| 5ce8a3b5be | |||
| 0bdd4a2db0 | |||
| 76e516c7f3 | |||
| c7363d513e | |||
| 8d66cb1f66 | |||
| f9269f2c2c | |||
| 9b9b551907 | |||
| ab96839f50 | |||
| a3bd4349e2 | |||
| 4dcb961e81 | |||
| 9561cb8d82 | |||
| 2e3e37062a | |||
| f85ff91873 | |||
| 62cb2881c2 |
15
.gitmodules
vendored
15
.gitmodules
vendored
@@ -25,9 +25,6 @@
|
|||||||
[submodule "mosquitto/charts"]
|
[submodule "mosquitto/charts"]
|
||||||
path = mosquitto/charts
|
path = mosquitto/charts
|
||||||
url = https://github.com/smizy/charts.git
|
url = https://github.com/smizy/charts.git
|
||||||
[submodule "external-storage"]
|
|
||||||
path = external-storage
|
|
||||||
url = https://github.com/kubernetes-incubator/external-storage.git
|
|
||||||
[submodule "mosquitto-exporter"]
|
[submodule "mosquitto-exporter"]
|
||||||
path = mosquitto-exporter
|
path = mosquitto-exporter
|
||||||
url = https://github.com/sapcc/mosquitto-exporter.git
|
url = https://github.com/sapcc/mosquitto-exporter.git
|
||||||
@@ -46,3 +43,15 @@
|
|||||||
[submodule "apps/postgresql/postgres_exporter"]
|
[submodule "apps/postgresql/postgres_exporter"]
|
||||||
path = apps/postgresql/postgres_exporter
|
path = apps/postgresql/postgres_exporter
|
||||||
url = https://github.com/wrouesnel/postgres_exporter.git
|
url = https://github.com/wrouesnel/postgres_exporter.git
|
||||||
|
[submodule "apps/tekton/dashboard"]
|
||||||
|
path = apps/tekton/dashboard
|
||||||
|
url = https://github.com/tektoncd/dashboard.git
|
||||||
|
[submodule "_sys/haproxy-ingress"]
|
||||||
|
path = _sys/haproxy-ingress
|
||||||
|
url = https://github.com/haproxytech/kubernetes-ingress.git
|
||||||
|
[submodule "nfs-subdir-external-provisioner"]
|
||||||
|
path = nfs-subdir-external-provisioner
|
||||||
|
url = https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner.git
|
||||||
|
[submodule "apps/docker-registry/docker-registry-ui"]
|
||||||
|
path = apps/docker-registry/docker-registry-ui
|
||||||
|
url = https://github.com/Joxit/docker-registry-ui.git
|
||||||
|
|||||||
9
_CI-CD/debian-golang/Dockerfile
Normal file
9
_CI-CD/debian-golang/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM debian:stable-slim
|
||||||
|
|
||||||
|
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
apt-get update && apt-get install -y \
|
||||||
|
golang make git && \
|
||||||
|
apt-get clean -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
rm -rf /var/cache/apt/*
|
||||||
84
_CI-CD/debian-golang/tekton-debian-golang-img.yaml
Normal file
84
_CI-CD/debian-golang/tekton-debian-golang-img.yaml
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-debian-golang-stable
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/debian-golang-stable
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-debian-golang
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToContainerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/_CI-CD/debian-golang/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/_CI-CD/debian-golang
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToContainerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --skip-tls-verify
|
||||||
|
#workspaces:
|
||||||
|
# - name: workspace
|
||||||
|
# mountPath: /workspace
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-debian-golang
|
||||||
|
spec:
|
||||||
|
taskRef:
|
||||||
|
name: build-debian-golang
|
||||||
|
params:
|
||||||
|
- name: pathToContainerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-debian-golang-stable
|
||||||
|
# workspaces:
|
||||||
|
# - name: workspace
|
||||||
|
# persistentVolumeClaim:
|
||||||
|
# claimName: tektoncd-workspaces
|
||||||
|
# subPath: workspaces
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
11
_CI-CD/debian-stable/Dockerfile
Normal file
11
_CI-CD/debian-stable/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM debian:stable-slim
|
||||||
|
|
||||||
|
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
apt-get update && apt-get install -y \
|
||||||
|
dnsutils procps nmap bash iputils-ping bash && \
|
||||||
|
apt-get clean -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
rm -rf /var/cache/apt/*
|
||||||
|
ADD docker-entrypoint.sh /
|
||||||
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
5
_CI-CD/debian-stable/docker-entrypoint.sh
Executable file
5
_CI-CD/debian-stable/docker-entrypoint.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
84
_CI-CD/debian-stable/tekton-debian-stable.yaml
Normal file
84
_CI-CD/debian-stable/tekton-debian-stable.yaml
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-debian-stable
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/debian-stable
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-debian-stable
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToContainerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/_CI-CD/debian-stable/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/_CI-CD/debian-stable
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToContainerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --skip-tls-verify
|
||||||
|
#workspaces:
|
||||||
|
# - name: workspace
|
||||||
|
# mountPath: /workspace
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-debian-stable
|
||||||
|
spec:
|
||||||
|
taskRef:
|
||||||
|
name: build-debian-stable
|
||||||
|
params:
|
||||||
|
- name: pathToContainerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-debian-stable
|
||||||
|
# workspaces:
|
||||||
|
# - name: workspace
|
||||||
|
# persistentVolumeClaim:
|
||||||
|
# claimName: tektoncd-workspaces
|
||||||
|
# subPath: workspaces
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
22
_CI-CD/distcc/Dockerfile
Normal file
22
_CI-CD/distcc/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
FROM debian:stable-slim
|
||||||
|
|
||||||
|
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf \
|
||||||
|
multiarch-support dpkg-dev distcc ccache \
|
||||||
|
build-essential gcc cpp g++ clang llvm && \
|
||||||
|
apt-get clean -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/*; \
|
||||||
|
rm -rf /var/cache/apt/*; \
|
||||||
|
#removing distcc conf, no zeroconf
|
||||||
|
rm -fv /etc/distcc/hosts
|
||||||
|
|
||||||
|
# Op port
|
||||||
|
EXPOSE 3632
|
||||||
|
# Stats port
|
||||||
|
EXPOSE 3633
|
||||||
|
|
||||||
|
USER distccd
|
||||||
|
ENTRYPOINT /usr/bin/distccd --no-detach --daemon --stats --log-level error --log-stderr $OPTIONS
|
||||||
@@ -1,27 +1,25 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: distcc
|
app: distcc
|
||||||
release: buster
|
release: stable
|
||||||
name: distcc
|
name: distcc
|
||||||
namespace: default
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
serviceName: distcc
|
||||||
|
replicas: 4
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: distcc
|
app: distcc
|
||||||
strategy:
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: distcc
|
app: distcc
|
||||||
release: buster
|
release: stable
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: distcc
|
- name: distcc
|
||||||
image: docker-registry.lan/distcc:armhf
|
image: cr.lan/distcc
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
#env:
|
#env:
|
||||||
#- name: OPTIONS
|
#- name: OPTIONS
|
||||||
@@ -35,12 +33,11 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 1
|
cpu: 4
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 1
|
cpu: 50m
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
dnsPolicy: ClusterFirst
|
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
securityContext: {}
|
securityContext: {}
|
||||||
@@ -61,11 +58,9 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: distcc
|
app: distcc
|
||||||
release: buster
|
release: stable
|
||||||
namespace: default
|
|
||||||
name: distcc
|
name: distcc
|
||||||
spec:
|
spec:
|
||||||
externalTrafficPolicy: Cluster
|
|
||||||
ports:
|
ports:
|
||||||
- name: distcc-data
|
- name: distcc-data
|
||||||
port: 3632
|
port: 3632
|
||||||
@@ -77,4 +72,3 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
selector:
|
selector:
|
||||||
app: distcc
|
app: distcc
|
||||||
type: LoadBalancer
|
|
||||||
76
_CI-CD/distcc/tekton-image-build.yaml
Normal file
76
_CI-CD/distcc/tekton-image-build.yaml
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-distcc
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/distcc
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-distcc
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/distcc/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/distcc
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --skip-tls-verify
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-distcc
|
||||||
|
spec:
|
||||||
|
#serviceAccountName: dockerhub-service
|
||||||
|
taskRef:
|
||||||
|
name: build-distcc
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-distcc
|
||||||
|
|
||||||
|
|
||||||
6
_sys/README.md
Normal file
6
_sys/README.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Descheduler (reschedule pods)
|
||||||
|
# https://github.com/kubernetes-sigs/descheduler
|
||||||
|
# kubectl apply -n kube-system -f https://raw.githubusercontent.com/kubernetes-sigs/descheduler/master/kubernetes/base/rbac.yaml
|
||||||
|
# kubectl apply -n kube-system -f https://raw.githubusercontent.com/kubernetes-sigs/descheduler/master/kubernetes/base/configmap.yaml
|
||||||
|
# kubectl apply -n kube-system -f https://raw.githubusercontent.com/kubernetes-sigs/descheduler/master/kubernetes/job/job.yaml
|
||||||
|
|
||||||
47
_sys/descheduler-cronjob.yaml
Normal file
47
_sys/descheduler-cronjob.yaml
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
apiVersion: batch/v1beta1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: descheduler-cronjob
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
schedule: "40 */1 * * *"
|
||||||
|
concurrencyPolicy: "Forbid"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: descheduler-pod
|
||||||
|
spec:
|
||||||
|
priorityClassName: system-cluster-critical
|
||||||
|
containers:
|
||||||
|
- name: descheduler
|
||||||
|
image: k8s.gcr.io/descheduler/descheduler:v0.20.0
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /policy-dir
|
||||||
|
name: policy-volume
|
||||||
|
command:
|
||||||
|
- "/bin/descheduler"
|
||||||
|
args:
|
||||||
|
- "--policy-config-file"
|
||||||
|
- "/policy-dir/policy.yaml"
|
||||||
|
- "--v"
|
||||||
|
- "3"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "256Mi"
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
privileged: false
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: false
|
||||||
|
restartPolicy: "Never"
|
||||||
|
serviceAccountName: descheduler-sa
|
||||||
|
volumes:
|
||||||
|
- name: policy-volume
|
||||||
|
configMap:
|
||||||
|
name: descheduler-policy-configmap
|
||||||
27
_sys/descheduler-policy-configmap.yaml
Normal file
27
_sys/descheduler-policy-configmap.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: descheduler-policy-configmap
|
||||||
|
namespace: kube-system
|
||||||
|
data:
|
||||||
|
policy.yaml: |
|
||||||
|
apiVersion: "descheduler/v1alpha1"
|
||||||
|
kind: "DeschedulerPolicy"
|
||||||
|
strategies:
|
||||||
|
"RemoveDuplicates":
|
||||||
|
enabled: true
|
||||||
|
"RemovePodsViolatingInterPodAntiAffinity":
|
||||||
|
enabled: false
|
||||||
|
"LowNodeUtilization":
|
||||||
|
enabled: true
|
||||||
|
params:
|
||||||
|
nodeResourceUtilizationThresholds:
|
||||||
|
thresholds:
|
||||||
|
"cpu": 30
|
||||||
|
"memory": 50
|
||||||
|
"pods": 15
|
||||||
|
targetThresholds:
|
||||||
|
"cpu": 70
|
||||||
|
"memory": 80
|
||||||
|
"pods": 20
|
||||||
|
|
||||||
@@ -1,204 +0,0 @@
|
|||||||
#https://raw.githubusercontent.com/haproxytech/kubernetes-ingress/master/deploy/haproxy-ingress.yaml
|
|
||||||
#https://www.haproxy.com/documentation/kubernetes/latest/installation/community/kubernetes/
|
|
||||||
#
|
|
||||||
# NOTES: Images are not from haproxytech, no arm64 imgs
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: haproxy-controller
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: haproxy-ingress-service-account
|
|
||||||
namespace: haproxy-controller
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: ClusterRole
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: haproxy-ingress-cluster-role
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- configmaps
|
|
||||||
- endpoints
|
|
||||||
- nodes
|
|
||||||
- pods
|
|
||||||
- services
|
|
||||||
- namespaces
|
|
||||||
- events
|
|
||||||
- serviceaccounts
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- "extensions"
|
|
||||||
resources:
|
|
||||||
- ingresses
|
|
||||||
- ingresses/status
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- update
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- secrets
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- create
|
|
||||||
- patch
|
|
||||||
- update
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: haproxy-ingress-cluster-role-binding
|
|
||||||
namespace: haproxy-controller
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: haproxy-ingress-cluster-role
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: haproxy-ingress-service-account
|
|
||||||
namespace: haproxy-controller
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: haproxy
|
|
||||||
namespace: haproxy-controller
|
|
||||||
data:
|
|
||||||
forwarded-for: "true"
|
|
||||||
load-balance: "leastconn"
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
run: ingress-default-backend
|
|
||||||
name: ingress-default-backend
|
|
||||||
namespace: haproxy-controller
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
run: ingress-default-backend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
run: ingress-default-backend
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: ingress-default-backend
|
|
||||||
#image: gcr.io/google_containers/defaultbackend:1.4
|
|
||||||
image: starlingx4arm/defaultbackend:1.5-aarch64
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
run: ingress-default-backend
|
|
||||||
name: ingress-default-backend
|
|
||||||
namespace: haproxy-controller
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
run: ingress-default-backend
|
|
||||||
ports:
|
|
||||||
- name: port-1
|
|
||||||
port: 8080
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8080
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
run: haproxy-ingress
|
|
||||||
name: haproxy-ingress
|
|
||||||
namespace: haproxy-controller
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
run: haproxy-ingress
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
run: haproxy-ingress
|
|
||||||
spec:
|
|
||||||
serviceAccountName: haproxy-ingress-service-account
|
|
||||||
containers:
|
|
||||||
- name: haproxy-ingress
|
|
||||||
#image: haproxytech/kubernetes-ingress
|
|
||||||
image: bmanojlovic/kubernetes-ingress:latest
|
|
||||||
args:
|
|
||||||
- --configmap=haproxy-controller/haproxy
|
|
||||||
- --default-backend-service=haproxy-controller/ingress-default-backend
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "500m"
|
|
||||||
memory: "50Mi"
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: 1042
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 80
|
|
||||||
- name: https
|
|
||||||
containerPort: 443
|
|
||||||
- name: stat
|
|
||||||
containerPort: 1024
|
|
||||||
env:
|
|
||||||
- name: TZ
|
|
||||||
value: "Etc/UTC"
|
|
||||||
- name: POD_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.name
|
|
||||||
- name: POD_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
run: haproxy-ingress
|
|
||||||
name: haproxy-ingress
|
|
||||||
namespace: haproxy-controller
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
run: haproxy-ingress
|
|
||||||
type: NodePort
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 80
|
|
||||||
- name: https
|
|
||||||
port: 443
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 443
|
|
||||||
- name: stat
|
|
||||||
port: 1024
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 1024
|
|
||||||
10
_sys/ingress-nginx-configmap.yaml
Normal file
10
_sys/ingress-nginx-configmap.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: nginx-config
|
||||||
|
#namespace: nginx-ingress
|
||||||
|
namespace: default
|
||||||
|
data:
|
||||||
|
proxy-connect-timeout: "10s"
|
||||||
|
proxy-read-timeout: "10s"
|
||||||
|
client-max-body-size: "0"
|
||||||
654
_sys/ingress-nginx.yaml
Normal file
654
_sys/ingress-nginx.yaml
Normal file
@@ -0,0 +1,654 @@
|
|||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/controller-serviceaccount.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
name: ingress-nginx
|
||||||
|
namespace: ingress-nginx
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/controller-configmap.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
name: ingress-nginx-controller
|
||||||
|
namespace: ingress-nginx
|
||||||
|
data:
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/clusterrole.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
name: ingress-nginx
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
|
- endpoints
|
||||||
|
- nodes
|
||||||
|
- pods
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- nodes
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- services
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
- networking.k8s.io # k8s 1.14+
|
||||||
|
resources:
|
||||||
|
- ingresses
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- events
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- patch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
- networking.k8s.io # k8s 1.14+
|
||||||
|
resources:
|
||||||
|
- ingresses/status
|
||||||
|
verbs:
|
||||||
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- networking.k8s.io # k8s 1.14+
|
||||||
|
resources:
|
||||||
|
- ingressclasses
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/clusterrolebinding.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
name: ingress-nginx
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: ingress-nginx
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: ingress-nginx
|
||||||
|
namespace: ingress-nginx
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/controller-role.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
name: ingress-nginx
|
||||||
|
namespace: ingress-nginx
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- namespaces
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
|
- pods
|
||||||
|
- secrets
|
||||||
|
- endpoints
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- services
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
- networking.k8s.io # k8s 1.14+
|
||||||
|
resources:
|
||||||
|
- ingresses
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
- networking.k8s.io # k8s 1.14+
|
||||||
|
resources:
|
||||||
|
- ingresses/status
|
||||||
|
verbs:
|
||||||
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- networking.k8s.io # k8s 1.14+
|
||||||
|
resources:
|
||||||
|
- ingressclasses
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
|
resourceNames:
|
||||||
|
- ingress-controller-leader-nginx
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- events
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- patch
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/controller-rolebinding.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
name: ingress-nginx
|
||||||
|
namespace: ingress-nginx
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: Role
|
||||||
|
name: ingress-nginx
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: ingress-nginx
|
||||||
|
namespace: ingress-nginx
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/controller-service-webhook.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
name: ingress-nginx-controller-admission
|
||||||
|
namespace: ingress-nginx
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- name: https-webhook
|
||||||
|
port: 443
|
||||||
|
targetPort: webhook
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/controller-service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
name: ingress-nginx-controller
|
||||||
|
namespace: ingress-nginx
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
loadBalancerIP: 172.23.255.1
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: http
|
||||||
|
- name: https
|
||||||
|
port: 443
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: https
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/controller-deployment.yaml
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
name: ingress-nginx-controller
|
||||||
|
namespace: ingress-nginx
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
minReadySeconds: 0
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
|
spec:
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
containers:
|
||||||
|
- name: controller
|
||||||
|
image: k8s.gcr.io/ingress-nginx/controller:v0.44.0@sha256:3dd0fac48073beaca2d67a78c746c7593f9c575168a17139a9955a82c63c4b9a
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
lifecycle:
|
||||||
|
preStop:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /wait-shutdown
|
||||||
|
args:
|
||||||
|
- /nginx-ingress-controller
|
||||||
|
- --election-id=ingress-controller-leader
|
||||||
|
- --ingress-class=nginx
|
||||||
|
- --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
|
||||||
|
- --validating-webhook=:8443
|
||||||
|
- --validating-webhook-certificate=/usr/local/certificates/cert
|
||||||
|
- --validating-webhook-key=/usr/local/certificates/key
|
||||||
|
- --enable-ssl-passthrough
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
add:
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
runAsUser: 101
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
env:
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: LD_PRELOAD
|
||||||
|
value: /usr/local/lib/libmimalloc.so
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: 10254
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 1
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: 10254
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 1
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
- name: https
|
||||||
|
containerPort: 443
|
||||||
|
protocol: TCP
|
||||||
|
- name: webhook
|
||||||
|
containerPort: 8443
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- name: webhook-cert
|
||||||
|
mountPath: /usr/local/certificates/
|
||||||
|
readOnly: true
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 90Mi
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/os: linux
|
||||||
|
serviceAccountName: ingress-nginx
|
||||||
|
terminationGracePeriodSeconds: 300
|
||||||
|
volumes:
|
||||||
|
- name: webhook-cert
|
||||||
|
secret:
|
||||||
|
secretName: ingress-nginx-admission
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
|
||||||
|
# before changing this value, check the required kubernetes version
|
||||||
|
# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
|
||||||
|
apiVersion: admissionregistration.k8s.io/v1
|
||||||
|
kind: ValidatingWebhookConfiguration
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
webhooks:
|
||||||
|
- name: validate.nginx.ingress.kubernetes.io
|
||||||
|
matchPolicy: Equivalent
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- networking.k8s.io
|
||||||
|
apiVersions:
|
||||||
|
- v1beta1
|
||||||
|
operations:
|
||||||
|
- CREATE
|
||||||
|
- UPDATE
|
||||||
|
resources:
|
||||||
|
- ingresses
|
||||||
|
failurePolicy: Fail
|
||||||
|
sideEffects: None
|
||||||
|
admissionReviewVersions:
|
||||||
|
- v1
|
||||||
|
- v1beta1
|
||||||
|
clientConfig:
|
||||||
|
service:
|
||||||
|
namespace: ingress-nginx
|
||||||
|
name: ingress-nginx-controller-admission
|
||||||
|
path: /networking/v1beta1/ingresses
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
annotations:
|
||||||
|
helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
|
||||||
|
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
namespace: ingress-nginx
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
annotations:
|
||||||
|
helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
|
||||||
|
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- admissionregistration.k8s.io
|
||||||
|
resources:
|
||||||
|
- validatingwebhookconfigurations
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- update
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
annotations:
|
||||||
|
helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
|
||||||
|
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
namespace: ingress-nginx
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
annotations:
|
||||||
|
helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
|
||||||
|
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
namespace: ingress-nginx
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- ''
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- create
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
annotations:
|
||||||
|
helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
|
||||||
|
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
namespace: ingress-nginx
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: Role
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: ingress-nginx-admission
|
||||||
|
namespace: ingress-nginx
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission-create
|
||||||
|
annotations:
|
||||||
|
helm.sh/hook: pre-install,pre-upgrade
|
||||||
|
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
namespace: ingress-nginx
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission-create
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: create
|
||||||
|
image: docker.io/jettech/kube-webhook-certgen:v1.5.1
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
args:
|
||||||
|
- create
|
||||||
|
- --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
|
||||||
|
- --namespace=$(POD_NAMESPACE)
|
||||||
|
- --secret-name=ingress-nginx-admission
|
||||||
|
env:
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
restartPolicy: OnFailure
|
||||||
|
serviceAccountName: ingress-nginx-admission
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 2000
|
||||||
|
---
|
||||||
|
# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission-patch
|
||||||
|
annotations:
|
||||||
|
helm.sh/hook: post-install,post-upgrade
|
||||||
|
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
namespace: ingress-nginx
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx-admission-patch
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: ingress-nginx-3.23.0
|
||||||
|
app.kubernetes.io/name: ingress-nginx
|
||||||
|
app.kubernetes.io/instance: ingress-nginx
|
||||||
|
app.kubernetes.io/version: 0.44.0
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
app.kubernetes.io/component: admission-webhook
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: patch
|
||||||
|
image: docker.io/jettech/kube-webhook-certgen:v1.5.1
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
args:
|
||||||
|
- patch
|
||||||
|
- --webhook-name=ingress-nginx-admission
|
||||||
|
- --namespace=$(POD_NAMESPACE)
|
||||||
|
- --patch-mutating=false
|
||||||
|
- --secret-name=ingress-nginx-admission
|
||||||
|
- --patch-failure-policy=Fail
|
||||||
|
env:
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
restartPolicy: OnFailure
|
||||||
|
serviceAccountName: ingress-nginx-admission
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 2000
|
||||||
223
_sys/kube-flannel.yml
Normal file
223
_sys/kube-flannel.yml
Normal file
@@ -0,0 +1,223 @@
|
|||||||
|
---
|
||||||
|
apiVersion: policy/v1beta1
|
||||||
|
kind: PodSecurityPolicy
|
||||||
|
metadata:
|
||||||
|
name: psp.flannel.unprivileged
|
||||||
|
annotations:
|
||||||
|
seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default
|
||||||
|
seccomp.security.alpha.kubernetes.io/defaultProfileName: docker/default
|
||||||
|
apparmor.security.beta.kubernetes.io/allowedProfileNames: runtime/default
|
||||||
|
apparmor.security.beta.kubernetes.io/defaultProfileName: runtime/default
|
||||||
|
spec:
|
||||||
|
privileged: false
|
||||||
|
volumes:
|
||||||
|
- configMap
|
||||||
|
- secret
|
||||||
|
- emptyDir
|
||||||
|
- hostPath
|
||||||
|
allowedHostPaths:
|
||||||
|
- pathPrefix: "/etc/cni/net.d"
|
||||||
|
- pathPrefix: "/etc/kube-flannel"
|
||||||
|
- pathPrefix: "/run/flannel"
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
# Users and groups
|
||||||
|
runAsUser:
|
||||||
|
rule: RunAsAny
|
||||||
|
supplementalGroups:
|
||||||
|
rule: RunAsAny
|
||||||
|
fsGroup:
|
||||||
|
rule: RunAsAny
|
||||||
|
# Privilege Escalation
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
defaultAllowPrivilegeEscalation: false
|
||||||
|
# Capabilities
|
||||||
|
allowedCapabilities: ['NET_ADMIN', 'NET_RAW']
|
||||||
|
defaultAddCapabilities: []
|
||||||
|
requiredDropCapabilities: []
|
||||||
|
# Host namespaces
|
||||||
|
hostPID: false
|
||||||
|
hostIPC: false
|
||||||
|
hostNetwork: true
|
||||||
|
hostPorts:
|
||||||
|
- min: 0
|
||||||
|
max: 65535
|
||||||
|
# SELinux
|
||||||
|
seLinux:
|
||||||
|
# SELinux is unused in CaaSP
|
||||||
|
rule: 'RunAsAny'
|
||||||
|
---
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: flannel
|
||||||
|
rules:
|
||||||
|
- apiGroups: ['extensions']
|
||||||
|
resources: ['podsecuritypolicies']
|
||||||
|
verbs: ['use']
|
||||||
|
resourceNames: ['psp.flannel.unprivileged']
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- pods
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- nodes
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- nodes/status
|
||||||
|
verbs:
|
||||||
|
- patch
|
||||||
|
---
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: flannel
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: flannel
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: flannel
|
||||||
|
namespace: kube-system
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: flannel
|
||||||
|
namespace: kube-system
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: kube-flannel-cfg
|
||||||
|
namespace: kube-system
|
||||||
|
labels:
|
||||||
|
tier: node
|
||||||
|
app: flannel
|
||||||
|
data:
|
||||||
|
cni-conf.json: |
|
||||||
|
{
|
||||||
|
"name": "cbr0",
|
||||||
|
"cniVersion": "0.3.1",
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
|
"type": "flannel",
|
||||||
|
"delegate": {
|
||||||
|
"hairpinMode": true,
|
||||||
|
"isDefaultGateway": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "portmap",
|
||||||
|
"capabilities": {
|
||||||
|
"portMappings": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
net-conf.json: |
|
||||||
|
{
|
||||||
|
"Network": "172.23.0.0/16",
|
||||||
|
"Backend": {
|
||||||
|
"Type": "vxlan"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
name: kube-flannel-ds
|
||||||
|
namespace: kube-system
|
||||||
|
labels:
|
||||||
|
tier: node
|
||||||
|
app: flannel
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: flannel
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
tier: node
|
||||||
|
app: flannel
|
||||||
|
spec:
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: kubernetes.io/os
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- linux
|
||||||
|
hostNetwork: true
|
||||||
|
priorityClassName: system-node-critical
|
||||||
|
tolerations:
|
||||||
|
- operator: Exists
|
||||||
|
effect: NoSchedule
|
||||||
|
serviceAccountName: flannel
|
||||||
|
initContainers:
|
||||||
|
- name: install-cni
|
||||||
|
image: quay.io/coreos/flannel:v0.13.1-rc1
|
||||||
|
command:
|
||||||
|
- cp
|
||||||
|
args:
|
||||||
|
- -f
|
||||||
|
- /etc/kube-flannel/cni-conf.json
|
||||||
|
- /etc/cni/net.d/10-flannel.conflist
|
||||||
|
volumeMounts:
|
||||||
|
- name: cni
|
||||||
|
mountPath: /etc/cni/net.d
|
||||||
|
- name: flannel-cfg
|
||||||
|
mountPath: /etc/kube-flannel/
|
||||||
|
containers:
|
||||||
|
- name: kube-flannel
|
||||||
|
image: quay.io/coreos/flannel:v0.13.1-rc1
|
||||||
|
command:
|
||||||
|
- /opt/bin/flanneld
|
||||||
|
args:
|
||||||
|
- --ip-masq
|
||||||
|
- --kube-subnet-mgr
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "100m"
|
||||||
|
memory: "50Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "100m"
|
||||||
|
memory: "50Mi"
|
||||||
|
securityContext:
|
||||||
|
privileged: false
|
||||||
|
capabilities:
|
||||||
|
add: ["NET_ADMIN", "NET_RAW"]
|
||||||
|
env:
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
volumeMounts:
|
||||||
|
- name: run
|
||||||
|
mountPath: /run/flannel
|
||||||
|
- name: flannel-cfg
|
||||||
|
mountPath: /etc/kube-flannel/
|
||||||
|
volumes:
|
||||||
|
- name: run
|
||||||
|
hostPath:
|
||||||
|
path: /run/flannel
|
||||||
|
- name: cni
|
||||||
|
hostPath:
|
||||||
|
path: /etc/cni/net.d
|
||||||
|
- name: flannel-cfg
|
||||||
|
configMap:
|
||||||
|
name: kube-flannel-cfg
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: kube-router
|
|
||||||
namespace: kube-system
|
|
||||||
---
|
|
||||||
kind: ClusterRole
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
metadata:
|
|
||||||
name: kube-router
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- namespaces
|
|
||||||
- pods
|
|
||||||
- services
|
|
||||||
- nodes
|
|
||||||
- endpoints
|
|
||||||
verbs:
|
|
||||||
- list
|
|
||||||
- get
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- "networking.k8s.io"
|
|
||||||
resources:
|
|
||||||
- networkpolicies
|
|
||||||
verbs:
|
|
||||||
- list
|
|
||||||
- get
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- extensions
|
|
||||||
resources:
|
|
||||||
- networkpolicies
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
---
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
metadata:
|
|
||||||
name: kube-router
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: kube-router
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: kube-router
|
|
||||||
namespace: kube-system
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
#https://gist.github.com/jjo/8c616aaf795284bb5b85d02143745f63
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: kube-router-cfg
|
|
||||||
namespace: kube-system
|
|
||||||
labels:
|
|
||||||
tier: node
|
|
||||||
k8s-app: kube-router
|
|
||||||
data:
|
|
||||||
cni-conf.json: |
|
|
||||||
{
|
|
||||||
"cniVersion":"0.3.0",
|
|
||||||
"name":"mynet",
|
|
||||||
"plugins":[
|
|
||||||
{
|
|
||||||
"name":"kubernetes",
|
|
||||||
"type":"bridge",
|
|
||||||
"bridge":"kube-bridge",
|
|
||||||
"isDefaultGateway":true,
|
|
||||||
"hairpinMode":true,
|
|
||||||
"ipam":{
|
|
||||||
"type":"host-local"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: DaemonSet
|
|
||||||
metadata:
|
|
||||||
name: kube-router
|
|
||||||
namespace: kube-system
|
|
||||||
labels:
|
|
||||||
k8s-app: kube-router
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: kube-router
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
k8s-app: kube-router
|
|
||||||
spec:
|
|
||||||
priorityClassName: system-node-critical
|
|
||||||
containers:
|
|
||||||
- name: kube-router
|
|
||||||
image: docker.io/cloudnativelabs/kube-router
|
|
||||||
args:
|
|
||||||
- "--run-router=true"
|
|
||||||
- "--run-firewall=true"
|
|
||||||
- "--run-service-proxy=true"
|
|
||||||
- "--bgp-graceful-restart=true"
|
|
||||||
- "--hairpin-mode=true"
|
|
||||||
- "--enable-cni=true"
|
|
||||||
- "--advertise-cluster-ip=true"
|
|
||||||
- "--advertise-external-ip=true"
|
|
||||||
- "--advertise-loadbalancer-ip=true"
|
|
||||||
- "--kubeconfig=/var/lib/kube-router/kubeconfig"
|
|
||||||
#- "--master=https://192.168.10.13:6443"
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
imagePullPolicy: Always
|
|
||||||
env:
|
|
||||||
- name: NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
- name: KUBE_ROUTER_CNI_CONF_FILE
|
|
||||||
value: /etc/cni/net.d/10-kuberouter.conflist
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: 20244
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 3
|
|
||||||
volumeMounts:
|
|
||||||
- name: lib-modules
|
|
||||||
mountPath: /lib/modules
|
|
||||||
readOnly: true
|
|
||||||
- name: cni-conf-dir
|
|
||||||
mountPath: /etc/cni/net.d
|
|
||||||
- name: kubeconfig
|
|
||||||
mountPath: /var/lib/kube-router/kubeconfig
|
|
||||||
readOnly: true
|
|
||||||
- name: xtables-lock
|
|
||||||
mountPath: /run/xtables.lock
|
|
||||||
readOnly: false
|
|
||||||
initContainers:
|
|
||||||
- name: install-cni
|
|
||||||
image: docker.io/cloudnativelabs/kube-router
|
|
||||||
imagePullPolicy: Always
|
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
- -c
|
|
||||||
- set -e -x;
|
|
||||||
if [ ! -f /etc/cni/net.d/10-kuberouter.conflist ]; then
|
|
||||||
if [ -f /etc/cni/net.d/*.conf ]; then
|
|
||||||
rm -f /etc/cni/net.d/*.conf;
|
|
||||||
fi;
|
|
||||||
TMP=/etc/cni/net.d/.tmp-kuberouter-cfg;
|
|
||||||
cp /etc/kube-router/cni-conf.json ${TMP};
|
|
||||||
mv ${TMP} /etc/cni/net.d/10-kuberouter.conflist;
|
|
||||||
fi
|
|
||||||
volumeMounts:
|
|
||||||
- name: cni-conf-dir
|
|
||||||
mountPath: /etc/cni/net.d
|
|
||||||
- name: kube-router-cfg
|
|
||||||
mountPath: /etc/kube-router
|
|
||||||
hostNetwork: true
|
|
||||||
serviceAccountName: kube-router
|
|
||||||
serviceAccount: kube-router
|
|
||||||
tolerations:
|
|
||||||
- effect: NoSchedule
|
|
||||||
operator: Exists
|
|
||||||
- key: CriticalAddonsOnly
|
|
||||||
operator: Exists
|
|
||||||
- effect: NoExecute
|
|
||||||
operator: Exists
|
|
||||||
volumes:
|
|
||||||
- name: lib-modules
|
|
||||||
hostPath:
|
|
||||||
path: /lib/modules
|
|
||||||
- name: cni-conf-dir
|
|
||||||
hostPath:
|
|
||||||
path: /etc/cni/net.d
|
|
||||||
- name: kube-router-cfg
|
|
||||||
configMap:
|
|
||||||
name: kube-router-cfg
|
|
||||||
- name: kubeconfig
|
|
||||||
hostPath:
|
|
||||||
path: /var/lib/kube-router/kubeconfig
|
|
||||||
- name: xtables-lock
|
|
||||||
hostPath:
|
|
||||||
path: /run/xtables.lock
|
|
||||||
type: FileOrCreate
|
|
||||||
|
|
||||||
27
_sys/nfs-provisioners/class.yaml
Normal file
27
_sys/nfs-provisioners/class.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: nfs-ssd
|
||||||
|
provisioner: nfs-ssd # or choose another name, must match deployment's env PROVISIONER_NAME'
|
||||||
|
parameters:
|
||||||
|
archiveOnDelete: "false"
|
||||||
|
reclaimPolicy: Retain
|
||||||
|
---
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: nfs-ssd-ebin01
|
||||||
|
provisioner: nfs-ssd-ebin01 # or choose another name, must match deployment's env PROVISIONER_NAME'
|
||||||
|
parameters:
|
||||||
|
archiveOnDelete: "false"
|
||||||
|
reclaimPolicy: Retain
|
||||||
|
---
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: nfs-ssd-ebin02
|
||||||
|
provisioner: nfs-ssd-ebin02 # or choose another name, must match deployment's env PROVISIONER_NAME'
|
||||||
|
parameters:
|
||||||
|
archiveOnDelete: "false"
|
||||||
|
reclaimPolicy: Retain
|
||||||
39
_sys/nfs-provisioners/deployment-arm-deprecated.yaml
Normal file
39
_sys/nfs-provisioners/deployment-arm-deprecated.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nfs-client-provisioner
|
||||||
|
labels:
|
||||||
|
app: nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nfs-client-provisioner
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nfs-client-provisioner
|
||||||
|
spec:
|
||||||
|
serviceAccountName: nfs-client-provisioner
|
||||||
|
containers:
|
||||||
|
- name: nfs-client-provisioner
|
||||||
|
image: quay.io/external_storage/nfs-client-provisioner-arm:latest
|
||||||
|
volumeMounts:
|
||||||
|
- name: nfs-client-root
|
||||||
|
mountPath: /persistentvolumes
|
||||||
|
env:
|
||||||
|
- name: PROVISIONER_NAME
|
||||||
|
value: nfs-ssd
|
||||||
|
- name: NFS_SERVER
|
||||||
|
value: ebin01
|
||||||
|
- name: NFS_PATH
|
||||||
|
value: /data/raid1-ssd/k8s-data
|
||||||
|
volumes:
|
||||||
|
- name: nfs-client-root
|
||||||
|
nfs:
|
||||||
|
server: ebin01
|
||||||
|
path: /data/raid1-ssd/k8s-data
|
||||||
37
_sys/nfs-provisioners/deployment_nfs-ssd-ebin01.yaml
Normal file
37
_sys/nfs-provisioners/deployment_nfs-ssd-ebin01.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nfs-ssd-ebin01
|
||||||
|
labels:
|
||||||
|
app: nfs-ssd-ebin01
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nfs-ssd-ebin01
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nfs-ssd-ebin01
|
||||||
|
spec:
|
||||||
|
serviceAccountName: nfs-client-provisioner
|
||||||
|
containers:
|
||||||
|
- name: nfs-ssd-ebin01
|
||||||
|
image: quay.io/external_storage/nfs-client-provisioner-arm:latest
|
||||||
|
volumeMounts:
|
||||||
|
- name: nfs-client-root
|
||||||
|
mountPath: /persistentvolumes
|
||||||
|
env:
|
||||||
|
- name: PROVISIONER_NAME
|
||||||
|
value: nfs-ssd-ebin01
|
||||||
|
- name: NFS_SERVER
|
||||||
|
value: ebin01
|
||||||
|
- name: NFS_PATH
|
||||||
|
value: /data/raid1-ssd/k8s-data
|
||||||
|
volumes:
|
||||||
|
- name: nfs-client-root
|
||||||
|
nfs:
|
||||||
|
server: ebin01
|
||||||
|
path: /data/raid1-ssd/k8s-data
|
||||||
37
_sys/nfs-provisioners/deployment_nfs-ssd-ebin02.yaml
Normal file
37
_sys/nfs-provisioners/deployment_nfs-ssd-ebin02.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nfs-ssd-ebin02
|
||||||
|
labels:
|
||||||
|
app: nfs-ssd-ebin02
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nfs-ssd-ebin02
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nfs-ssd-ebin02
|
||||||
|
spec:
|
||||||
|
serviceAccountName: nfs-client-provisioner
|
||||||
|
containers:
|
||||||
|
- name: nfs-ssd-ebin02
|
||||||
|
image: quay.io/external_storage/nfs-client-provisioner-arm:latest
|
||||||
|
volumeMounts:
|
||||||
|
- name: nfs-client-root
|
||||||
|
mountPath: /persistentvolumes
|
||||||
|
env:
|
||||||
|
- name: PROVISIONER_NAME
|
||||||
|
value: nfs-ssd-ebin02
|
||||||
|
- name: NFS_SERVER
|
||||||
|
value: ebin02
|
||||||
|
- name: NFS_PATH
|
||||||
|
value: /data/raid1-ssd/k8s-data
|
||||||
|
volumes:
|
||||||
|
- name: nfs-client-root
|
||||||
|
nfs:
|
||||||
|
server: ebin02
|
||||||
|
path: /data/raid1-ssd/k8s-data
|
||||||
65
_sys/nfs-provisioners/rbac.yaml
Normal file
65
_sys/nfs-provisioners/rbac.yaml
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: live-infra
|
||||||
|
---
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: nfs-client-provisioner-runner
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumes"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "delete"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumeclaims"]
|
||||||
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
- apiGroups: ["storage.k8s.io"]
|
||||||
|
resources: ["storageclasses"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["events"]
|
||||||
|
verbs: ["create", "update", "patch"]
|
||||||
|
---
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: run-nfs-client-provisioner
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: live-infra
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: nfs-client-provisioner-runner
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
---
|
||||||
|
kind: Role
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: leader-locking-nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: live-infra
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["endpoints"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch"]
|
||||||
|
---
|
||||||
|
kind: RoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: leader-locking-nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: live-infra
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: live-infra
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: leader-locking-nfs-client-provisioner
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
19
_sys/setup/namespaces.yaml
Normal file
19
_sys/setup/namespaces.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: live-env
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: test-env
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: live-infra
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: test-infra
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: traefik-ingress-controller
|
|
||||||
namespace: kube-system
|
|
||||||
---
|
|
||||||
kind: Deployment
|
|
||||||
apiVersion: apps/v1
|
|
||||||
metadata:
|
|
||||||
name: traefik-ingress-controller
|
|
||||||
namespace: kube-system
|
|
||||||
labels:
|
|
||||||
k8s-app: traefik-ingress-lb
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: traefik-ingress-lb
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
k8s-app: traefik-ingress-lb
|
|
||||||
name: traefik-ingress-lb
|
|
||||||
spec:
|
|
||||||
serviceAccountName: traefik-ingress-controller
|
|
||||||
terminationGracePeriodSeconds: 60
|
|
||||||
containers:
|
|
||||||
- image: traefik:v1.7
|
|
||||||
name: traefik-ingress-lb
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 80
|
|
||||||
- name: admin
|
|
||||||
containerPort: 8080
|
|
||||||
args:
|
|
||||||
- --api
|
|
||||||
- --kubernetes
|
|
||||||
- --loglevel=ERROR
|
|
||||||
---
|
|
||||||
kind: Service
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: traefik-ingress-service
|
|
||||||
namespace: kube-system
|
|
||||||
annotations:
|
|
||||||
kuber-router.io/service.hairpin: ""
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
k8s-app: traefik-ingress-lb
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
name: web
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8080
|
|
||||||
name: admin
|
|
||||||
type: LoadBalancer
|
|
||||||
loadBalancerIP: 172.23.255.1
|
|
||||||
@@ -1,17 +1,12 @@
|
|||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
|
|
||||||
RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
apt-cacher-ng procps && \
|
apt-cacher-ng && \
|
||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /var/cache/apt/*
|
rm -rf /var/cache/apt/*
|
||||||
|
|
||||||
RUN echo 'PassThroughPattern: .*' >> /etc/apt-cacher-ng/acng.conf
|
RUN echo 'PassThroughPattern: .*' >> /etc/apt-cacher-ng/acng.conf
|
||||||
|
|
||||||
CMD chown apt-cacher-ng:apt-cacher-ng /var/cache/apt-cacher-ng
|
|
||||||
EXPOSE 3142
|
EXPOSE 3142
|
||||||
|
|
||||||
USER apt-cacher-ng
|
|
||||||
#CMD chmod 777 /var/cache/apt-cacher-ng && /etc/init.d/apt-cacher-ng start && tail -f /var/log/apt-cacher-ng/*
|
|
||||||
CMD /usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng pidfile=/var/run/apt-cacher-ng/pid SocketPath=/var/run/apt-cacher-ng/socket foreground=1
|
CMD /usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng pidfile=/var/run/apt-cacher-ng/pid SocketPath=/var/run/apt-cacher-ng/socket foreground=1
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: apt-cacher-ng
|
- name: apt-cacher-ng
|
||||||
image: docker-registry.lan/apt-cacher-ng:arm64
|
image: cr.lan/apt-cacher-ng:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3142
|
- containerPort: 3142
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
@@ -27,10 +27,10 @@ spec:
|
|||||||
name: data
|
name: data
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "24Mi"
|
memory: "64Mi"
|
||||||
cpu: "50m"
|
cpu: "50m"
|
||||||
limits:
|
limits:
|
||||||
memory: "256Mi"
|
memory: "192Mi"
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
@@ -69,8 +69,6 @@ apiVersion: v1
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: apt-cacher-volume
|
name: apt-cacher-volume
|
||||||
#annotations:
|
|
||||||
# volume.beta.kubernetes.io/storage-class: "managed-nfs-storage"
|
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-ssd
|
storageClassName: nfs-ssd
|
||||||
accessModes:
|
accessModes:
|
||||||
|
|||||||
76
apps/apt-cacher-ng/tekton-image-build.yaml
Normal file
76
apps/apt-cacher-ng/tekton-image-build.yaml
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-apt-cacher-ng
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/apt-cacher-ng
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-apt-cacher-ng
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/apt-cacher-ng/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/apt-cacher-ng
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --skip-tls-verify
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-apt-cacher-ng
|
||||||
|
spec:
|
||||||
|
#serviceAccountName: dockerhub-service
|
||||||
|
taskRef:
|
||||||
|
name: build-apt-cacher-ng
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-apt-cacher-ng
|
||||||
|
|
||||||
|
|
||||||
@@ -1,464 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: argo
|
|
||||||
---
|
|
||||||
# This is an auto-generated file. DO NOT EDIT
|
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: clusterworkflowtemplates.argoproj.io
|
|
||||||
spec:
|
|
||||||
group: argoproj.io
|
|
||||||
names:
|
|
||||||
kind: ClusterWorkflowTemplate
|
|
||||||
listKind: ClusterWorkflowTemplateList
|
|
||||||
plural: clusterworkflowtemplates
|
|
||||||
shortNames:
|
|
||||||
- clusterwftmpl
|
|
||||||
- cwft
|
|
||||||
singular: clusterworkflowtemplate
|
|
||||||
scope: Cluster
|
|
||||||
version: v1alpha1
|
|
||||||
versions:
|
|
||||||
- name: v1alpha1
|
|
||||||
served: true
|
|
||||||
storage: true
|
|
||||||
---
|
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: cronworkflows.argoproj.io
|
|
||||||
spec:
|
|
||||||
group: argoproj.io
|
|
||||||
names:
|
|
||||||
kind: CronWorkflow
|
|
||||||
listKind: CronWorkflowList
|
|
||||||
plural: cronworkflows
|
|
||||||
shortNames:
|
|
||||||
- cwf
|
|
||||||
- cronwf
|
|
||||||
singular: cronworkflow
|
|
||||||
scope: Namespaced
|
|
||||||
version: v1alpha1
|
|
||||||
versions:
|
|
||||||
- name: v1alpha1
|
|
||||||
served: true
|
|
||||||
storage: true
|
|
||||||
---
|
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: workflows.argoproj.io
|
|
||||||
spec:
|
|
||||||
additionalPrinterColumns:
|
|
||||||
- JSONPath: .status.phase
|
|
||||||
description: Status of the workflow
|
|
||||||
name: Status
|
|
||||||
type: string
|
|
||||||
- JSONPath: .status.startedAt
|
|
||||||
description: When the workflow was started
|
|
||||||
format: date-time
|
|
||||||
name: Age
|
|
||||||
type: date
|
|
||||||
group: argoproj.io
|
|
||||||
names:
|
|
||||||
kind: Workflow
|
|
||||||
listKind: WorkflowList
|
|
||||||
plural: workflows
|
|
||||||
shortNames:
|
|
||||||
- wf
|
|
||||||
singular: workflow
|
|
||||||
scope: Namespaced
|
|
||||||
subresources: {}
|
|
||||||
version: v1alpha1
|
|
||||||
versions:
|
|
||||||
- name: v1alpha1
|
|
||||||
served: true
|
|
||||||
storage: true
|
|
||||||
---
|
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: workflowtemplates.argoproj.io
|
|
||||||
spec:
|
|
||||||
group: argoproj.io
|
|
||||||
names:
|
|
||||||
kind: WorkflowTemplate
|
|
||||||
listKind: WorkflowTemplateList
|
|
||||||
plural: workflowtemplates
|
|
||||||
shortNames:
|
|
||||||
- wftmpl
|
|
||||||
singular: workflowtemplate
|
|
||||||
scope: Namespaced
|
|
||||||
version: v1alpha1
|
|
||||||
versions:
|
|
||||||
- name: v1alpha1
|
|
||||||
served: true
|
|
||||||
storage: true
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: argo
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: argo-server
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
name: argo-role
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- secrets
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
|
||||||
name: argo-aggregate-to-admin
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- argoproj.io
|
|
||||||
resources:
|
|
||||||
- workflows
|
|
||||||
- workflows/finalizers
|
|
||||||
- workflowtemplates
|
|
||||||
- workflowtemplates/finalizers
|
|
||||||
- cronworkflows
|
|
||||||
- cronworkflows/finalizers
|
|
||||||
- clusterworkflowtemplates
|
|
||||||
- clusterworkflowtemplates/finalizers
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
- delete
|
|
||||||
- deletecollection
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- patch
|
|
||||||
- update
|
|
||||||
- watch
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
|
||||||
name: argo-aggregate-to-edit
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- argoproj.io
|
|
||||||
resources:
|
|
||||||
- workflows
|
|
||||||
- workflows/finalizers
|
|
||||||
- workflowtemplates
|
|
||||||
- workflowtemplates/finalizers
|
|
||||||
- cronworkflows
|
|
||||||
- cronworkflows/finalizers
|
|
||||||
- clusterworkflowtemplates
|
|
||||||
- clusterworkflowtemplates/finalizers
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
- delete
|
|
||||||
- deletecollection
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- patch
|
|
||||||
- update
|
|
||||||
- watch
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
|
||||||
name: argo-aggregate-to-view
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- argoproj.io
|
|
||||||
resources:
|
|
||||||
- workflows
|
|
||||||
- workflows/finalizers
|
|
||||||
- workflowtemplates
|
|
||||||
- workflowtemplates/finalizers
|
|
||||||
- cronworkflows
|
|
||||||
- cronworkflows/finalizers
|
|
||||||
- clusterworkflowtemplates
|
|
||||||
- clusterworkflowtemplates/finalizers
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: argo-cluster-role
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- pods
|
|
||||||
- pods/exec
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- update
|
|
||||||
- patch
|
|
||||||
- delete
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- configmaps
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- watch
|
|
||||||
- list
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- persistentvolumeclaims
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
- delete
|
|
||||||
- apiGroups:
|
|
||||||
- argoproj.io
|
|
||||||
resources:
|
|
||||||
- workflows
|
|
||||||
- workflows/finalizers
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- update
|
|
||||||
- patch
|
|
||||||
- delete
|
|
||||||
- create
|
|
||||||
- apiGroups:
|
|
||||||
- argoproj.io
|
|
||||||
resources:
|
|
||||||
- workflowtemplates
|
|
||||||
- workflowtemplates/finalizers
|
|
||||||
- clusterworkflowtemplates
|
|
||||||
- clusterworkflowtemplates/finalizers
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- serviceaccounts
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- apiGroups:
|
|
||||||
- argoproj.io
|
|
||||||
resources:
|
|
||||||
- cronworkflows
|
|
||||||
- cronworkflows/finalizers
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- update
|
|
||||||
- patch
|
|
||||||
- delete
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- events
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
- patch
|
|
||||||
- apiGroups:
|
|
||||||
- policy
|
|
||||||
resources:
|
|
||||||
- poddisruptionbudgets
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
- get
|
|
||||||
- delete
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: argo-server-cluster-role
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- configmaps
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- watch
|
|
||||||
- list
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- secrets
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- pods
|
|
||||||
- pods/exec
|
|
||||||
- pods/log
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- delete
|
|
||||||
- apiGroups:
|
|
||||||
- argoproj.io
|
|
||||||
resources:
|
|
||||||
- workflows
|
|
||||||
- workflowtemplates
|
|
||||||
- cronworkflows
|
|
||||||
- clusterworkflowtemplates
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- update
|
|
||||||
- patch
|
|
||||||
- delete
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: argo-binding
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: argo-role
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: argo
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: argo-binding
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: argo-cluster-role
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: argo
|
|
||||||
namespace: argo
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: argo-server-binding
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: argo-server-cluster-role
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: argo-server
|
|
||||||
namespace: argo
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: workflow-controller-configmap
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: argo-server
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: web
|
|
||||||
port: 2746
|
|
||||||
targetPort: 2746
|
|
||||||
selector:
|
|
||||||
app: argo-server
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: workflow-controller-metrics
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: metrics
|
|
||||||
port: 9090
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9090
|
|
||||||
selector:
|
|
||||||
app: workflow-controller
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: argo-server
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: argo-server
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: argo-server
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- args:
|
|
||||||
- server
|
|
||||||
image: argoproj/argocli:latest
|
|
||||||
name: argo-server
|
|
||||||
ports:
|
|
||||||
- containerPort: 2746
|
|
||||||
name: web
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: 2746
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 20
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/os: linux
|
|
||||||
serviceAccountName: argo-server
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: workflow-controller
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: workflow-controller
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: workflow-controller
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- args:
|
|
||||||
- --configmap
|
|
||||||
- workflow-controller-configmap
|
|
||||||
- --executor-image
|
|
||||||
- argoproj/argoexec:latest
|
|
||||||
command:
|
|
||||||
- workflow-controller
|
|
||||||
image: argoproj/workflow-controller:latest
|
|
||||||
name: workflow-controller
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/os: linux
|
|
||||||
serviceAccountName: argo
|
|
||||||
7
apps/argocd/README.md
Normal file
7
apps/argocd/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM: https://tanzu.vmware.com/developer/guides/ci-cd/argocd-gs/
|
||||||
|
|
||||||
|
# kubectl apply -f namespace.yaml
|
||||||
|
# -kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml-
|
||||||
|
# kubectl apply -n argocd -f install.yaml (needs changes for ARM builds)
|
||||||
|
# kubectl apply -n argocd -f ingress.yaml
|
||||||
|
|
||||||
18
apps/argocd/ingress.yaml
Normal file
18
apps/argocd/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#https://argoproj.github.io/argo-cd/operator-manual/ingress/#kubernetesingress-nginx
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: argocd-server
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: nginx
|
||||||
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: argocd.lan
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
serviceName: argocd-server
|
||||||
|
servicePort: https
|
||||||
2726
apps/argocd/install.yaml
Normal file
2726
apps/argocd/install.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: test
|
name: argocd
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
|
|
||||||
#RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
curl procps && \
|
curl procps && \
|
||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
|
|||||||
76
apps/curl/tekton-image-build.yaml
Normal file
76
apps/curl/tekton-image-build.yaml
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-curl
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/curl
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-curl
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/curl/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/curl
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --skip-tls-verify
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-curl-taskrun
|
||||||
|
spec:
|
||||||
|
#serviceAccountName: dockerhub-service
|
||||||
|
taskRef:
|
||||||
|
name: build-curl
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-curl
|
||||||
|
|
||||||
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
FROM debian:buster-slim
|
|
||||||
|
|
||||||
RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
|
|
||||||
RUN dpkg --add-architecture armhf && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y \
|
|
||||||
multiarch-support \
|
|
||||||
dpkg-dev \
|
|
||||||
distcc ccache \
|
|
||||||
build-essential \
|
|
||||||
gcc \
|
|
||||||
cpp \
|
|
||||||
g++ \
|
|
||||||
clang \
|
|
||||||
llvm && \
|
|
||||||
apt-get clean -y && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Op port
|
|
||||||
EXPOSE 3632
|
|
||||||
# Stats port
|
|
||||||
EXPOSE 3633
|
|
||||||
|
|
||||||
USER distccd
|
|
||||||
ENTRYPOINT /usr/bin/distccd --no-detach --daemon --stats --log-level error --log-stderr $OPTIONS
|
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
Docker-ui
|
Docker-ui
|
||||||
|
|
||||||
Build it for arm64:
|
Build it for arm64 in docker-registry-ui
|
||||||
|
|
||||||
docker build --platform linux/arm64 -t joxit/docker-registry-ui:static -f static.dockerfile github.com/Joxit/docker-registry-ui
|
ARCH=arm64; APP=docker-registry-ui ; podman build --arch=$ARCH -t $APP:$ARCH -t cr.lan/$APP:$ARCH -f arm64v8-static.dockerfile
|
||||||
|
|
||||||
|
ARCH=arm64; APP=docker-registry-ui ; podman push cr.lan/$APP:$ARCH
|
||||||
docker tag 1494c11066f5 docker-registry.lan/docker-registry-ui:arm64
|
|
||||||
docker push docker-registry.lan/docker-registry-ui:arm64
|
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
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
|
|
||||||
i+DOL/C63wFKJddUnKSXCf+iAJraGw==
|
|
||||||
-----END PRIVATE KEY-----
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
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
|
|
||||||
Lpilp6oWJLkzjfyGR3Um
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
1
apps/docker-registry/docker-registry-ui
Submodule
1
apps/docker-registry/docker-registry-ui
Submodule
Submodule apps/docker-registry/docker-registry-ui added at 6b012cc8fd
@@ -6,7 +6,6 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: registry-ui
|
app: registry-ui
|
||||||
release: docker-registry-ui
|
release: docker-registry-ui
|
||||||
app/version: "1.2.1"
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -21,19 +20,19 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: registry-ui
|
- name: registry-ui
|
||||||
image: "docker-registry.lan/docker-registry-ui:arm64"
|
image: "cr.lan/docker-registry-ui:arm64"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: URL
|
#- name: URL
|
||||||
value: "http://docker-registry.lan"
|
# value: "https://cr.lan"
|
||||||
- name: REGISTRY_TITLE
|
- name: REGISTRY_TITLE
|
||||||
value: "dReg"
|
value: "cReg"
|
||||||
- name: DELETE_IMAGES
|
- name: DELETE_IMAGES
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: REGISTRY_URL
|
- name: REGISTRY_URL
|
||||||
value: "http://docker-registry-ui.lan"
|
value: "https://cr.lan"
|
||||||
- name: PULL_URL
|
#- name: PULL_URL
|
||||||
value: "http://docker-registry.lan"
|
# value: "https://cr.lan"
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
@@ -48,11 +47,11 @@ spec:
|
|||||||
port: http
|
port: http
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "24Mi"
|
memory: "20Mi"
|
||||||
cpu: "50m"
|
cpu: "10m"
|
||||||
limits:
|
limits:
|
||||||
memory: "64Mi"
|
memory: "32Mi"
|
||||||
cpu: "100m"
|
cpu: "50m"
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -61,7 +60,6 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: registry-ui
|
app: registry-ui
|
||||||
release: docker-registry-ui
|
release: docker-registry-ui
|
||||||
app/version: "1.2.1"
|
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
@@ -76,9 +74,13 @@ apiVersion: networking.k8s.io/v1beta1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: docker-registry-ui
|
name: docker-registry-ui
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
nginx.ingress.kubernetes.io/cors-allow-origin: "http://cr-ui.lan"
|
||||||
|
nginx.ingress.kubernetes.io/cors-expose-headers: "*"
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: docker-registry-ui.lan
|
- host: cr-ui.lan
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- backend:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: USER_UID
|
- name: USER_UID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
@@ -32,6 +32,16 @@ spec:
|
|||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Berlin"
|
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:
|
volumeMounts:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
@@ -56,7 +66,7 @@ spec:
|
|||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
limits:
|
limits:
|
||||||
memory: "1000Mi"
|
memory: "1000Mi"
|
||||||
cpu: "500m"
|
cpu: "1500m"
|
||||||
volumes:
|
volumes:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -84,6 +94,7 @@ metadata:
|
|||||||
app: gitea
|
app: gitea
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
loadBalancerIP: 172.23.255.2
|
||||||
ports:
|
ports:
|
||||||
- port: 3000
|
- port: 3000
|
||||||
targetPort: http
|
targetPort: http
|
||||||
@@ -102,6 +113,7 @@ metadata:
|
|||||||
name: gitea
|
name: gitea
|
||||||
annotations:
|
annotations:
|
||||||
ingress.kubernetes.io/whitelist-x-forwarded-for: "true"
|
ingress.kubernetes.io/whitelist-x-forwarded-for: "true"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-body-size: 512m
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: git-ui.lan
|
- host: git-ui.lan
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: mariadb
|
app: mariadb
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
loadBalancerIP: 172.23.255.4
|
loadBalancerIP: 172.23.255.5
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -29,7 +29,7 @@ spec:
|
|||||||
app: mariadb
|
app: mariadb
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: docker-registry.lan/mariadb:arm64
|
- image: cr.lan/mariadb
|
||||||
name: mariadb
|
name: mariadb
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
@@ -49,7 +49,7 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
memory: "1500Mi"
|
memory: "1500Mi"
|
||||||
cpu: "2000m"
|
cpu: "2000m"
|
||||||
- image: docker-registry.lan/mariadb-prometheus-exporter:arm64
|
- image: cr.lan/mariadb-prometheus-exporter
|
||||||
name: mariadb-prometheus-exporter
|
name: mariadb-prometheus-exporter
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
@@ -65,18 +65,37 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mariadb-persistent-storage
|
- name: mariadb-persistent-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mariadb-pv-claim
|
claimName: mariadb-data
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: mariadb-pv-claim
|
name: mariadb-data
|
||||||
annotations:
|
|
||||||
volume.beta.kubernetes.io/storage-class: nfs-ssd
|
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-ssd
|
storageClassName: nfs-ssd
|
||||||
|
volumeName: mariadb-data
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 20Gi
|
storage: 40Gi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: mariadb-data
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-ssd"
|
||||||
|
nfs:
|
||||||
|
path: /data/raid1-ssd/k8s-data/mariadb-data
|
||||||
|
server: ebin01
|
||||||
|
capacity:
|
||||||
|
storage: 40Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
claimRef:
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
name: mariadb-data
|
||||||
|
namspace: live-env
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ RUN groupadd -r mysql && useradd -r -g mysql mysql
|
|||||||
|
|
||||||
# https://bugs.debian.org/830696 (apt uses gpgv by default in newer releases, rather than gpg)
|
# https://bugs.debian.org/830696 (apt uses gpgv by default in newer releases, rather than gpg)
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list; \
|
||||||
|
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
if ! which gpg; then \
|
if ! which gpg; then \
|
||||||
apt-get install -y --no-install-recommends gnupg; \
|
apt-get install -y --no-install-recommends gnupg; \
|
||||||
@@ -93,6 +95,7 @@ RUN set -ex; \
|
|||||||
| xargs -rt -0 sed -Ei 's/^(bind-address|log)/#&/'; \
|
| xargs -rt -0 sed -Ei 's/^(bind-address|log)/#&/'; \
|
||||||
# don't reverse lookup hostnames, they are usually another container
|
# don't reverse lookup hostnames, they are usually another container
|
||||||
echo '[mysqld]\nskip-host-cache\nskip-name-resolve' > /etc/mysql/conf.d/docker.cnf; \
|
echo '[mysqld]\nskip-host-cache\nskip-name-resolve' > /etc/mysql/conf.d/docker.cnf; \
|
||||||
|
mkdir -p /run/mysqld; \
|
||||||
apt-get clean -y;
|
apt-get clean -y;
|
||||||
|
|
||||||
VOLUME /var/lib/mysql
|
VOLUME /var/lib/mysql
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-mariadb-prometheus-exporter
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/mariadb-prometheus-exporter
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-mariadb-prometheus-exporter
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/mariadb/mariadb-prometheus/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/mariadb/mariadb-prometheus
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --skip-tls-verify
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-mariadb-prometheus-exporter-taskrun
|
||||||
|
spec:
|
||||||
|
#serviceAccountName: dockerhub-service
|
||||||
|
taskRef:
|
||||||
|
name: build-mariadb-prometheus-exporter
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-mariadb-prometheus-exporter
|
||||||
|
|
||||||
|
|
||||||
76
apps/mariadb/tekton-image-build-mariadb.yaml
Normal file
76
apps/mariadb/tekton-image-build-mariadb.yaml
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-mariadb
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/mariadb
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-mariadb
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/mariadb/mariadb/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/mariadb/mariadb
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --skip-tls-verify
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-mariadb-taskrun
|
||||||
|
spec:
|
||||||
|
#serviceAccountName: dockerhub-service
|
||||||
|
taskRef:
|
||||||
|
name: build-mariadb
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-mariadb
|
||||||
|
|
||||||
|
|
||||||
@@ -1,19 +1,18 @@
|
|||||||
FROM debian:buster-slim
|
FROM debian:stable-slim
|
||||||
|
|
||||||
RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
|
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
||||||
RUN apt-get update && \
|
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
mosquitto mosquitto-clients procps && \
|
mosquitto procps && \
|
||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
# Op port
|
# Op port
|
||||||
EXPOSE 1883
|
EXPOSE 1883
|
||||||
# Stats port
|
|
||||||
#EXPOSE 9090
|
|
||||||
|
|
||||||
ADD docker-entrypoint.sh /
|
ADD docker-entrypoint.sh /
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
|
||||||
CMD ["/usr/sbin/mosquitto", "-c", "/mosquitto/config/mosquitto.conf"]
|
CMD ["/usr/sbin/mosquitto", "-v", "-c", "/mosquitto/config/mosquitto.conf"]
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ metadata:
|
|||||||
app: mosquitto
|
app: mosquitto
|
||||||
release: mqtt
|
release: mqtt
|
||||||
name: mqtt-mosquitto
|
name: mqtt-mosquitto
|
||||||
namespace: default
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -23,7 +22,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mqtt-mosquitto
|
- name: mqtt-mosquitto
|
||||||
image: docker-registry.lan/mosquitto:arm64
|
image: cr.lan/mosquitto
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
@@ -63,7 +62,7 @@ spec:
|
|||||||
name: mosquitto-data
|
name: mosquitto-data
|
||||||
subPath: mosquitto/data
|
subPath: mosquitto/data
|
||||||
- name: mosquitto-exporter
|
- name: mosquitto-exporter
|
||||||
image: docker-registry.lan/mosquitto-exporter:arm64
|
image: cr.lan/mosquitto-exporter
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9234
|
- containerPort: 9234
|
||||||
@@ -96,7 +95,6 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: mosquitto
|
app: mosquitto
|
||||||
release: mqtt
|
release: mqtt
|
||||||
namespace: default
|
|
||||||
name: mqtt-mosquitto
|
name: mqtt-mosquitto
|
||||||
spec:
|
spec:
|
||||||
externalTrafficPolicy: Cluster
|
externalTrafficPolicy: Cluster
|
||||||
@@ -117,13 +115,10 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
#annotations:
|
|
||||||
# volume.beta.kubernetes.io/storage-provisioner: nfs-storage
|
|
||||||
labels:
|
labels:
|
||||||
app: mosquitto
|
app: mosquitto
|
||||||
release: mqtt
|
release: mqtt
|
||||||
name: mqtt-mosquitto
|
name: mqtt-mosquitto
|
||||||
namespace: default
|
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
@@ -137,7 +132,6 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: mqtt-mosquitto
|
name: mqtt-mosquitto
|
||||||
namespace: default
|
|
||||||
labels:
|
labels:
|
||||||
app: mosquitto
|
app: mosquitto
|
||||||
release: mqtt
|
release: mqtt
|
||||||
|
|||||||
93
apps/mosquitto/tekton-image-build-prometheus-exporter.yaml
Normal file
93
apps/mosquitto/tekton-image-build-prometheus-exporter.yaml
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: github-mosquitto-prometheus-exporter
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: https://github.com/sapcc/mosquitto-exporter.git
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-mosquitto-prometheus-exporter
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/mosquitto-prometheus-exporter
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-mosquitto-prometheus-exporter
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-binary
|
||||||
|
image: cr.lan/debian-golang-stable
|
||||||
|
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 github.com/sapcc/mosquitto-exporter
|
||||||
|
make -j4 build CGO_ENABLED=0
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --snapshotMode=redo
|
||||||
|
- --skip-tls-verify
|
||||||
|
workspaces:
|
||||||
|
- name: usr-src
|
||||||
|
mountPath: /usr/src
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-mosquitto-prometheus-exporter
|
||||||
|
spec:
|
||||||
|
taskRef:
|
||||||
|
name: build-mosquitto-prometheus-exporter
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: github-mosquitto-prometheus-exporter
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-mosquitto-prometheus-exporter
|
||||||
|
workspaces:
|
||||||
|
- name: usr-src
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: tektoncd-workspaces
|
||||||
|
subPath: usr_src
|
||||||
|
|
||||||
77
apps/mosquitto/tekton-image-build.yaml
Normal file
77
apps/mosquitto/tekton-image-build.yaml
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-mosquitto
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/mosquitto
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-mosquitto
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/mosquitto/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/mosquitto
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --snapshotMode=redo
|
||||||
|
- --skip-tls-verify
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-mosquitto-taskrun
|
||||||
|
spec:
|
||||||
|
#serviceAccountName: dockerhub-service
|
||||||
|
taskRef:
|
||||||
|
name: build-mosquitto
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-mosquitto
|
||||||
|
|
||||||
|
|
||||||
@@ -25,6 +25,13 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "1"
|
||||||
|
memory: "200Mi"
|
||||||
|
requests:
|
||||||
|
memory: "64Mi"
|
||||||
|
cpu: "50m"
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -54,7 +61,7 @@ metadata:
|
|||||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: node-red.lan
|
- host: nodered.lan
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -68,7 +75,7 @@ kind: PersistentVolumeClaim
|
|||||||
metadata:
|
metadata:
|
||||||
name: node-red
|
name: node-red
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-ssd
|
storageClassName: nfs-ssd-ebin01
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
|||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: pihole-password
|
name: pihole-password
|
||||||
namespace: default
|
namespace: live-env
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
password: YWRtaW4yMDIw
|
password: YWRtaW4yMDIw
|
||||||
@@ -33,6 +33,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
|
- name: TZ
|
||||||
|
value: Europe/Berlin
|
||||||
- name: WEB_PORT
|
- name: WEB_PORT
|
||||||
value: "80"
|
value: "80"
|
||||||
- name: VIRTUAL_HOST
|
- name: VIRTUAL_HOST
|
||||||
@@ -46,7 +48,7 @@ spec:
|
|||||||
value: 208.67.222.222
|
value: 208.67.222.222
|
||||||
- name: DNS2
|
- name: DNS2
|
||||||
value: 208.67.220.220
|
value: 208.67.220.220
|
||||||
image: pihole/pihole:v5.1.2
|
image: pihole/pihole:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
failureThreshold: 10
|
failureThreshold: 10
|
||||||
@@ -170,7 +172,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: pihole
|
app: pihole
|
||||||
name: pihole-tcp
|
name: pihole-tcp
|
||||||
namespace: default
|
namespace: live-env
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
loadBalancerIP: 172.23.255.253
|
loadBalancerIP: 172.23.255.253
|
||||||
@@ -202,7 +204,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: pihole
|
app: pihole
|
||||||
name: pihole-udp
|
name: pihole-udp
|
||||||
namespace: default
|
namespace: live-env
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
loadBalancerIP: 172.23.255.253
|
loadBalancerIP: 172.23.255.253
|
||||||
|
|||||||
@@ -21,6 +21,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: postgres
|
image: postgres
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: postgres-disk
|
- name: postgres-disk
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
@@ -37,7 +40,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: postgres-disk
|
- name: postgres-disk
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: postgres
|
claimName: postgres-data
|
||||||
# volumeClaimTemplates:
|
# volumeClaimTemplates:
|
||||||
# - metadata:
|
# - metadata:
|
||||||
# name: postgres-disk
|
# name: postgres-disk
|
||||||
@@ -51,17 +54,37 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres
|
name: postgres-data
|
||||||
labels:
|
labels:
|
||||||
app: postgres
|
app: postgres
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-ssd
|
storageClassName: nfs-ssd
|
||||||
|
volumeName: postgres-data
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 20Mi
|
storage: 40Gi
|
||||||
# service.yml
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: postgres-data
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-ssd"
|
||||||
|
nfs:
|
||||||
|
path: /data/raid1-ssd/k8s-data/postgres-data
|
||||||
|
server: ebin01
|
||||||
|
capacity:
|
||||||
|
storage: 40Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
claimRef:
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
name: postgres-data
|
||||||
|
namespace: live-env
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -74,6 +97,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
env: live
|
env: live
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
loadBalancerIP: 172.23.255.4
|
||||||
ports:
|
ports:
|
||||||
- port: 5432
|
- port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
|
|||||||
50
apps/smarthome/Containerfile
Normal file
50
apps/smarthome/Containerfile
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
FROM node:current-buster
|
||||||
|
|
||||||
|
# Set the commit of Zwave2Mqtt to checkout when cloning the repo
|
||||||
|
ENV Z2M_VERSION=9cc3740740b57f1e896139b5ffdb25be7576ad58
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
#setup local apt cache
|
||||||
|
#RUN sed -i 's@http://@http://apt-cache.lan/@g' /etc/apt/sources.list
|
||||||
|
#/apt-cache
|
||||||
|
|
||||||
|
# Install required dependencies
|
||||||
|
RUN apt update -y
|
||||||
|
RUN apt full-upgrade -y
|
||||||
|
|
||||||
|
# Packages we need
|
||||||
|
RUN apt install -y \
|
||||||
|
socat libopenzwave1.5 npm git
|
||||||
|
|
||||||
|
# Clone Zwave2Mqtt build pkg files and move them to /dist/pkg
|
||||||
|
RUN npm config set unsafe-perm true && npm install -g pkg
|
||||||
|
RUN cd /root \
|
||||||
|
&& git clone https://github.com/OpenZWave/Zwave2Mqtt.git \
|
||||||
|
&& cd Zwave2Mqtt \
|
||||||
|
&& git checkout ${Z2M_VERSION} \
|
||||||
|
&& npm install \
|
||||||
|
&& npm run build
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
RUN apt autoremove -y
|
||||||
|
RUN apt clean -y
|
||||||
|
RUN rm -rf /root/*
|
||||||
|
RUN apt-get clean -y
|
||||||
|
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
COPY --from=build /dist/lib/ /lib/
|
||||||
|
COPY --from=build /dist/pkg /usr/src/app
|
||||||
|
|
||||||
|
# supervisor base configuration
|
||||||
|
ADD supervisor.conf /etc/supervisor.conf
|
||||||
|
|
||||||
|
LABEL maintainer="zoide"
|
||||||
|
|
||||||
|
# Set enviroment
|
||||||
|
ENV LD_LIBRARY_PATH /lib
|
||||||
|
|
||||||
|
EXPOSE 8091
|
||||||
|
|
||||||
|
CMD ["supervisord", "-c", "/etc/supervisor.conf"]
|
||||||
|
#CMD ["/usr/src/app/zwave2mqtt"]
|
||||||
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
# ----------------
|
|
||||||
# STEP 1:
|
|
||||||
# https://lobradov.github.io/Building-docker-multiarch-images/
|
|
||||||
# Build Openzwave and Zwave2Mqtt pkg
|
|
||||||
# All result files will be put in /dist folder
|
|
||||||
FROM node:8.15.1-alpine AS build
|
|
||||||
|
|
||||||
# Set the commit of Zwave2Mqtt to checkout when cloning the repo
|
|
||||||
ENV Z2M_VERSION=9cc3740740b57f1e896139b5ffdb25be7576ad58
|
|
||||||
|
|
||||||
# Install required dependencies
|
|
||||||
RUN apk update && apk --no-cache add \
|
|
||||||
gnutls \
|
|
||||||
gnutls-dev \
|
|
||||||
libusb \
|
|
||||||
eudev \
|
|
||||||
# Install build dependencies
|
|
||||||
&& apk --no-cache --virtual .build-deps add \
|
|
||||||
coreutils \
|
|
||||||
eudev-dev \
|
|
||||||
build-base \
|
|
||||||
git \
|
|
||||||
python \
|
|
||||||
bash \
|
|
||||||
libusb-dev \
|
|
||||||
linux-headers \
|
|
||||||
wget \
|
|
||||||
tar \
|
|
||||||
openssl \
|
|
||||||
make \
|
|
||||||
socat
|
|
||||||
|
|
||||||
# Build binaries and move them to /dist/lib
|
|
||||||
RUN cd /root \
|
|
||||||
&& wget http://old.openzwave.com/downloads/openzwave-1.4.1.tar.gz \
|
|
||||||
&& tar zxvf openzwave-*.gz \
|
|
||||||
&& cd openzwave-* && make && make install \
|
|
||||||
&& mkdir -p /dist/lib \
|
|
||||||
&& mv libopenzwave.so* /dist/lib/
|
|
||||||
|
|
||||||
COPY bin/package.sh /root/package.sh
|
|
||||||
|
|
||||||
# Clone Zwave2Mqtt build pkg files and move them to /dist/pkg
|
|
||||||
RUN npm config set unsafe-perm true && npm install -g pkg \
|
|
||||||
&& cd /root \
|
|
||||||
&& git clone https://github.com/OpenZWave/Zwave2Mqtt.git \
|
|
||||||
&& cd Zwave2Mqtt \
|
|
||||||
&& git checkout ${Z2M_VERSION} \
|
|
||||||
&& npm install \
|
|
||||||
&& npm run build
|
|
||||||
|
|
||||||
RUN cd /root \
|
|
||||||
&& chmod +x package.sh && ./package.sh \
|
|
||||||
&& mkdir -p /dist/pkg \
|
|
||||||
&& mv /root/Zwave2Mqtt/pkg/* /dist/pkg
|
|
||||||
|
|
||||||
# Get last config DB from main repo and move files to /dist/db
|
|
||||||
RUN cd /root \
|
|
||||||
&& git clone https://github.com/OpenZWave/open-zwave.git \
|
|
||||||
&& cd open-zwave \
|
|
||||||
&& mkdir -p /dist/db \
|
|
||||||
&& mv config/* /dist/db
|
|
||||||
|
|
||||||
# Clean up
|
|
||||||
RUN rm -R /root/* && apk del .build-deps
|
|
||||||
|
|
||||||
# ----------------
|
|
||||||
# STEP 2:
|
|
||||||
# Run a minimal alpine image
|
|
||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
LABEL maintainer="zoide"
|
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache \
|
|
||||||
libstdc++ \
|
|
||||||
libgcc \
|
|
||||||
libusb \
|
|
||||||
eudev
|
|
||||||
|
|
||||||
# Copy files from previous build stage
|
|
||||||
COPY --from=build /dist/lib/ /lib/
|
|
||||||
COPY --from=build /dist/db/ /usr/local/etc/openzwave/
|
|
||||||
COPY --from=build /dist/pkg /usr/src/app
|
|
||||||
|
|
||||||
# supervisor base configuration
|
|
||||||
ADD supervisor.conf /etc/supervisor.conf
|
|
||||||
|
|
||||||
# Set enviroment
|
|
||||||
ENV LD_LIBRARY_PATH /lib
|
|
||||||
|
|
||||||
EXPOSE 8091
|
|
||||||
|
|
||||||
CMD ["supervisord", "-c", "/etc/supervisor.conf"]
|
|
||||||
#CMD ["/usr/src/app/zwave2mqtt"]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -35,21 +35,56 @@ spec:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
port: http
|
port: http
|
||||||
# resources:
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 10
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
port: http
|
port: http
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 5
|
||||||
# requests:
|
# requests:
|
||||||
# memory: "256Mi"
|
# memory: "256Mi"
|
||||||
# cpu: "250m"
|
# cpu: "250m"
|
||||||
# limits:
|
# limits:
|
||||||
# memory: "1000Mi"
|
# memory: "1000Mi"
|
||||||
# cpu: "500m"
|
# cpu: "500m"
|
||||||
|
- name: configurator
|
||||||
|
image: "causticlab/hass-configurator-docker:arm"
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: HC_HASS_API
|
||||||
|
value: http://127.0.0.1:8123/api/
|
||||||
|
- name: HC_HASS_API_PASSWORD
|
||||||
|
value: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhMzBmYjU1ZjcyZGE0Yzc2YmU2NmY0NjljNTAyMjdjZCIsImlhdCI6MTYxMjg4MzI5NywiZXhwIjoxOTI4MjQzMjk3fQ.1ICsHliUXR0CG4H8vQRYJ5jVqFwmqKSB0fScSitC-Q4
|
||||||
|
ports:
|
||||||
|
- name: adm
|
||||||
|
containerPort: 3218
|
||||||
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 3218
|
||||||
|
initialDelaySeconds: 3
|
||||||
|
periodSeconds: 3
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 3218
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 5
|
||||||
|
volumeMounts:
|
||||||
|
- name: hassio-storage
|
||||||
|
mountPath: /hass-config
|
||||||
|
- name: hassio-conf-storage
|
||||||
|
mountPath: /config
|
||||||
volumes:
|
volumes:
|
||||||
- name: hassio-storage
|
- name: hassio-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: hassio-storage
|
claimName: hassio-storage
|
||||||
|
- name: hassio-conf-storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: hassio-configurator
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
@@ -66,6 +101,20 @@ spec:
|
|||||||
storage: 20Mi
|
storage: 20Mi
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: hassio-configurator
|
||||||
|
labels:
|
||||||
|
app: hassio
|
||||||
|
spec:
|
||||||
|
storageClassName: nfs-ssd
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 20Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: hassio
|
name: hassio
|
||||||
@@ -82,6 +131,23 @@ spec:
|
|||||||
app: hassio
|
app: hassio
|
||||||
release: latest
|
release: latest
|
||||||
---
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: hassio-conf
|
||||||
|
labels:
|
||||||
|
app: hassio
|
||||||
|
release: latest
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: adm
|
||||||
|
protocol: TCP
|
||||||
|
name: adm
|
||||||
|
selector:
|
||||||
|
app: hassio
|
||||||
|
release: latest
|
||||||
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@@ -93,4 +159,10 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
- backend:
|
- backend:
|
||||||
serviceName: hassio
|
serviceName: hassio
|
||||||
servicePort: http
|
servicePort: http
|
||||||
|
- host: hassio-conf.lan
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
serviceName: hassio-conf
|
||||||
|
servicePort: adm
|
||||||
|
|||||||
8
apps/tekton/README.md
Normal file
8
apps/tekton/README.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Install:
|
||||||
|
|
||||||
|
# Pipelines: @kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml@
|
||||||
|
# Triggers: @kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml@ #https://github.com/tektoncd/triggers/blob/master/docs/install.md
|
||||||
|
# Dashboard:
|
||||||
|
## update submodule in ./dashboard
|
||||||
|
## Build: @docker build -t tekton-dashboard:arm64 -t docker-registry.lan/tekton-dashboard:arm64 --platform linux/arm64 --build-arg GOARCH=arm64 .@
|
||||||
|
## apply deployment.yaml
|
||||||
60
apps/tekton/confgmap-config-registry-conf.yaml
Normal file
60
apps/tekton/confgmap-config-registry-conf.yaml
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 2020 Tekton Authors LLC
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: config-registry-cert
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-pipelines
|
||||||
|
data:
|
||||||
|
# Registry's self-signed certificate
|
||||||
|
# TODO: somehow automate this with salt
|
||||||
|
cert: |
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
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
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
|
||||||
1
apps/tekton/dashboard
Submodule
1
apps/tekton/dashboard
Submodule
Submodule apps/tekton/dashboard added at c881ad4d3a
13
apps/tekton/tekton-dashboard-ingress.yaml
Normal file
13
apps/tekton/tekton-dashboard-ingress.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: tekton.lan
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
serviceName: tekton-dashboard
|
||||||
|
servicePort: 9097
|
||||||
526
apps/tekton/tekton-dashboard-release.yaml
Normal file
526
apps/tekton/tekton-dashboard-release.yaml
Normal file
@@ -0,0 +1,526 @@
|
|||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: extensions.dashboard.tekton.dev
|
||||||
|
spec:
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- JSONPath: .spec.apiVersion
|
||||||
|
name: API version
|
||||||
|
type: string
|
||||||
|
- JSONPath: .spec.name
|
||||||
|
name: Kind
|
||||||
|
type: string
|
||||||
|
- JSONPath: .spec.displayname
|
||||||
|
name: Display name
|
||||||
|
type: string
|
||||||
|
- JSONPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
|
group: dashboard.tekton.dev
|
||||||
|
names:
|
||||||
|
categories:
|
||||||
|
- tekton
|
||||||
|
- tekton-dashboard
|
||||||
|
kind: Extension
|
||||||
|
plural: extensions
|
||||||
|
shortNames:
|
||||||
|
- ext
|
||||||
|
- exts
|
||||||
|
preserveUnknownFields: false
|
||||||
|
scope: Namespaced
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
validation:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-backend
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- apiextensions.k8s.io
|
||||||
|
resources:
|
||||||
|
- customresourcedefinitions
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- apiGroups:
|
||||||
|
- security.openshift.io
|
||||||
|
resources:
|
||||||
|
- securitycontextconstraints
|
||||||
|
verbs:
|
||||||
|
- use
|
||||||
|
- apiGroups:
|
||||||
|
- tekton.dev
|
||||||
|
resources:
|
||||||
|
- clustertasks
|
||||||
|
- clustertasks/status
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- triggers.tekton.dev
|
||||||
|
resources:
|
||||||
|
- clustertriggerbindings
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- dashboard.tekton.dev
|
||||||
|
resources:
|
||||||
|
- extensions
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- update
|
||||||
|
- delete
|
||||||
|
- patch
|
||||||
|
- apiGroups:
|
||||||
|
- tekton.dev
|
||||||
|
resources:
|
||||||
|
- clustertasks
|
||||||
|
- clustertasks/status
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- update
|
||||||
|
- delete
|
||||||
|
- patch
|
||||||
|
- apiGroups:
|
||||||
|
- triggers.tekton.dev
|
||||||
|
resources:
|
||||||
|
- clustertriggerbindings
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- update
|
||||||
|
- delete
|
||||||
|
- patch
|
||||||
|
- add
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-dashboard
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- apps
|
||||||
|
resources:
|
||||||
|
- deployments
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
---
|
||||||
|
aggregationRule:
|
||||||
|
clusterRoleSelectors:
|
||||||
|
- matchLabels:
|
||||||
|
rbac.dashboard.tekton.dev/aggregate-to-dashboard: "true"
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-extensions
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-pipelines
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- apps
|
||||||
|
resources:
|
||||||
|
- deployments
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-tenant
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- services
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- dashboard.tekton.dev
|
||||||
|
resources:
|
||||||
|
- extensions
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- serviceaccounts
|
||||||
|
- pods/log
|
||||||
|
- namespaces
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- tekton.dev
|
||||||
|
resources:
|
||||||
|
- tasks
|
||||||
|
- taskruns
|
||||||
|
- pipelines
|
||||||
|
- pipelineruns
|
||||||
|
- pipelineresources
|
||||||
|
- conditions
|
||||||
|
- tasks/status
|
||||||
|
- taskruns/status
|
||||||
|
- pipelines/status
|
||||||
|
- pipelineruns/status
|
||||||
|
- taskruns/finalizers
|
||||||
|
- pipelineruns/finalizers
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- triggers.tekton.dev
|
||||||
|
resources:
|
||||||
|
- eventlisteners
|
||||||
|
- triggerbindings
|
||||||
|
- triggertemplates
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- serviceaccounts
|
||||||
|
verbs:
|
||||||
|
- update
|
||||||
|
- patch
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- create
|
||||||
|
- update
|
||||||
|
- delete
|
||||||
|
- apiGroups:
|
||||||
|
- tekton.dev
|
||||||
|
resources:
|
||||||
|
- tasks
|
||||||
|
- taskruns
|
||||||
|
- pipelines
|
||||||
|
- pipelineruns
|
||||||
|
- pipelineresources
|
||||||
|
- conditions
|
||||||
|
- taskruns/finalizers
|
||||||
|
- pipelineruns/finalizers
|
||||||
|
- tasks/status
|
||||||
|
- taskruns/status
|
||||||
|
- pipelines/status
|
||||||
|
- pipelineruns/status
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- update
|
||||||
|
- delete
|
||||||
|
- patch
|
||||||
|
- apiGroups:
|
||||||
|
- triggers.tekton.dev
|
||||||
|
resources:
|
||||||
|
- eventlisteners
|
||||||
|
- triggerbindings
|
||||||
|
- triggertemplates
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- update
|
||||||
|
- delete
|
||||||
|
- patch
|
||||||
|
- add
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-triggers
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- apps
|
||||||
|
resources:
|
||||||
|
- deployments
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-backend
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: tekton-dashboard-backend
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tekton-dashboard
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/name: dashboard
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
app.kubernetes.io/version: v0.11.1
|
||||||
|
dashboard.tekton.dev/release: v0.11.1
|
||||||
|
version: v0.11.1
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 9097
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 9097
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/name: dashboard
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tekton-dashboard
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/name: dashboard
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
app.kubernetes.io/version: v0.11.1
|
||||||
|
dashboard.tekton.dev/release: v0.11.1
|
||||||
|
version: v0.11.1
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/name: dashboard
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tekton-dashboard
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/name: dashboard
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
app.kubernetes.io/version: v0.11.1
|
||||||
|
name: tekton-dashboard
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- --port=9097
|
||||||
|
- --logout-url=
|
||||||
|
- --pipelines-namespace=tekton-pipelines
|
||||||
|
- --triggers-namespace=tekton-pipelines
|
||||||
|
- --read-only=false
|
||||||
|
- --csrf-secure-cookie=false
|
||||||
|
- --log-level=info
|
||||||
|
- --log-format=json
|
||||||
|
- --namespace=
|
||||||
|
- --openshift=false
|
||||||
|
- --stream-logs=false
|
||||||
|
- --external-logs=
|
||||||
|
env:
|
||||||
|
- name: INSTALLED_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: WEB_RESOURCES_DIR
|
||||||
|
value: /go/src/github.com/tektoncd/dashboard/web
|
||||||
|
- name: TEKTON_PIPELINES_WEB_RESOURCES_DIR
|
||||||
|
value: /go/src/github.com/tektoncd/dashboard/web
|
||||||
|
#image: gcr.io/tekton-releases/github.com/tektoncd/dashboard/cmd/dashboard@sha256:744eb92d7d0365bbfb2405df4ba4d2a66c01edc26028c362bd5675e2bc1b9626
|
||||||
|
image: docker-registry.lan/tekton-dashboard:arm64
|
||||||
|
imagePullPolicy: Always
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 9097
|
||||||
|
name: tekton-dashboard
|
||||||
|
ports:
|
||||||
|
- containerPort: 9097
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /readiness
|
||||||
|
port: 9097
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 65532
|
||||||
|
serviceAccountName: tekton-dashboard
|
||||||
|
volumes: []
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-pipelines
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: tekton-dashboard-pipelines
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: tekton-dashboard-dashboard
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-triggers
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: tekton-dashboard-triggers
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-tenant
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: tekton-dashboard-tenant
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
name: tekton-dashboard-extensions
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: tekton-dashboard-extensions
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: tekton-dashboard
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: dashboard
|
||||||
|
app.kubernetes.io/instance: default
|
||||||
|
app.kubernetes.io/part-of: tekton-dashboard
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: tekton.lan
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
serviceName: tekton-dashboard
|
||||||
|
servicePort: 9097
|
||||||
|
|
||||||
2006
apps/tekton/tektoncd-0.20.1-release.yaml
Normal file
2006
apps/tekton/tektoncd-0.20.1-release.yaml
Normal file
File diff suppressed because it is too large
Load Diff
12
apps/tekton/tektoncd-workspaces.yaml
Normal file
12
apps/tekton/tektoncd-workspaces.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: tektoncd-workspaces
|
||||||
|
spec:
|
||||||
|
storageClassName: nfs-ssd
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 40Gi
|
||||||
37
apps/web/almond-cloud/Dockerfile
Normal file
37
apps/web/almond-cloud/Dockerfile
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
FROM debian:bullseye
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ARG DEVPKGS="git make cmake gcc g++ python-dev libsqlcipher-dev"
|
||||||
|
|
||||||
|
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get -y install ${DEVPKGS} python3-pip python3-torch python3-dateutil python3-filelock python3-tqdm python3-pyparsing python3-joblib \
|
||||||
|
python3-portalocker python3-click python3-packaging python3-regex python3-docopt python3-systemd \
|
||||||
|
libsystemd-dev graphicsmagick zip unzip bubblewrap sqlcipher gettext nodejs npm && \
|
||||||
|
pip3 install tensorboardX && \
|
||||||
|
pip3 install 'git+https://github.com/stanford-oval/genienlp@0969c6ea74376b20982c0c8bea9a4732547b15cb#egg=genienlp' && \
|
||||||
|
git clone --depth=1 --branch v1.99.0 https://github.com/stanford-oval/almond-cloud.git /opt/almond-cloud
|
||||||
|
|
||||||
|
#setup
|
||||||
|
RUN useradd -ms /bin/bash -r almond-cloud && id almond-cloud
|
||||||
|
WORKDIR /opt/almond-cloud/
|
||||||
|
RUN chown -R almond-cloud:almond-cloud /opt/almond-cloud && \
|
||||||
|
echo "build_from_source = true" > ~almond-cloud/.npmrc && \
|
||||||
|
echo "sqlite = external" >> ~almond-cloud/.npmrc && \
|
||||||
|
echo "sqlite_libname = sqlcipher" >> ~almond-cloud/.npmrc && \
|
||||||
|
echo "======== package.json ============="; cat package.json && \
|
||||||
|
su almond-cloud -c 'CPLUS_INCLUDE_PATH=/usr/include/sqlcipher npm install' && \
|
||||||
|
chown -R root:root /opt/almond-cloud
|
||||||
|
|
||||||
|
COPY --chown=almond-cloud:almond-cloud start.sh /opt/almond-cloud/
|
||||||
|
|
||||||
|
# CLeanup
|
||||||
|
RUN apt-get remove -y --purge ${DEVPKGS} && \
|
||||||
|
apt-get autoremove --purge -y && \
|
||||||
|
apt-get clean -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
rm -rf /var/cache/apt/* /tmp/* /var/tmp/* /var/log/* /root/.cache
|
||||||
|
|
||||||
|
USER almond-cloud
|
||||||
|
WORKDIR /home/almond-cloud
|
||||||
|
ENTRYPOINT ["/opt/almond-cloud/start.sh"]
|
||||||
67
apps/web/almond-cloud/deployment.yaml
Normal file
67
apps/web/almond-cloud/deployment.yaml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: almond-cloud
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: almond-cloud
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: almond-cloud
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: cr.lan/almond-cloud
|
||||||
|
name: almond-cloud
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: http
|
||||||
|
volumeMounts:
|
||||||
|
- name: almond-cloud-data
|
||||||
|
mountPath: /home/almond-cloud
|
||||||
|
volumes:
|
||||||
|
- name: almond-cloud-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: almond-cloud-data
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: almond-cloud
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 3000
|
||||||
|
selector:
|
||||||
|
app: almond-cloud
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: almond-cloud
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: almond.lan
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
serviceName: almond-cloud
|
||||||
|
servicePort: http
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: almond-cloud-data
|
||||||
|
spec:
|
||||||
|
storageClassName: nfs-ssd-ebin01
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 6Gi
|
||||||
|
|
||||||
3
apps/web/almond-cloud/start.sh
Executable file
3
apps/web/almond-cloud/start.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
NODE_MAX_OLD_SPACE_SIZE=${NODE_MAX_OLD_SPACE_SIZE:-500}
|
||||||
|
exec node --max_old_space_size=${NODE_MAX_OLD_SPACE_SIZE} /opt/almond-cloud/main.js "$@"
|
||||||
77
apps/web/almond-cloud/tekton-image-build.yaml
Normal file
77
apps/web/almond-cloud/tekton-image-build.yaml
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-almond-cloud
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/almond-cloud
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-almond-cloud
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/web/almond-cloud/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/web/almond-cloud
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --snapshotMode=redo
|
||||||
|
- --skip-tls-verify
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-almond-cloud-taskrun
|
||||||
|
spec:
|
||||||
|
#serviceAccountName: dockerhub-service
|
||||||
|
taskRef:
|
||||||
|
name: build-almond-cloud
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-almond-cloud
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM debian:buster-slim
|
FROM debian:bullseye-slim
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
ARG GRAV_VERSION=1.6.28
|
ARG GRAV_VERSION=1.6.28
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ RUN apt-get remove -y --purge ${DEV_PKGS} exim4* && \
|
|||||||
|
|
||||||
RUN mkdir /run/php && \
|
RUN mkdir /run/php && \
|
||||||
chown www-data:www-data /var/log /run/php && \
|
chown www-data:www-data /var/log /run/php && \
|
||||||
mkdir -p /etc/php/7.3/fpm/pool.d
|
mkdir -p /etc/php/7.4/fpm/pool.d
|
||||||
ADD docker-entrypoint.sh /
|
ADD docker-entrypoint.sh /
|
||||||
ADD supervisor.conf /etc/supervisor.conf
|
ADD supervisor.conf /etc/supervisor.conf
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
app: grav
|
app: grav
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: docker-registry.lan/grav:arm64
|
- image: cr.lan/grav:arm64
|
||||||
name: grav
|
name: grav
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
@@ -25,7 +25,7 @@ spec:
|
|||||||
- name: grav-pages
|
- name: grav-pages
|
||||||
mountPath: /var/www/grav
|
mountPath: /var/www/grav
|
||||||
- name: grav-etc-php-fpm-www-conf
|
- name: grav-etc-php-fpm-www-conf
|
||||||
mountPath: /etc/php/7.3/fpm/pool.d
|
mountPath: /etc/php/7.4/fpm/pool.d
|
||||||
- image: nginx:alpine
|
- image: nginx:alpine
|
||||||
name: nginx
|
name: nginx
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
@@ -81,6 +81,8 @@ apiVersion: networking.k8s.io/v1beta1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: grav
|
name: grav
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/proxy-body-size: 512m
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: grav.lan
|
- host: grav.lan
|
||||||
@@ -95,7 +97,7 @@ kind: PersistentVolumeClaim
|
|||||||
metadata:
|
metadata:
|
||||||
name: grav-pages
|
name: grav-pages
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-ssd
|
storageClassName: nfs-ssd-ebin01
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -10,5 +10,5 @@ user=root
|
|||||||
|
|
||||||
|
|
||||||
[program:php-fpm]
|
[program:php-fpm]
|
||||||
command=/usr/sbin/php-fpm7.3 --nodaemonize --force-stderr
|
command=/usr/sbin/php-fpm7.4 --nodaemonize --force-stderr
|
||||||
user=www-data
|
user=www-data
|
||||||
@@ -17,9 +17,8 @@ spec:
|
|||||||
app: piwigo
|
app: piwigo
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: linuxserver/piwigo
|
- image: linuxserver/piwigo:latest
|
||||||
name: piwigo
|
name: piwigo
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
env:
|
env:
|
||||||
# Use secret in real usage
|
# Use secret in real usage
|
||||||
- name: TZ
|
- name: TZ
|
||||||
|
|||||||
@@ -1,20 +1,25 @@
|
|||||||
FROM php:7-fpm
|
FROM debian:buster-slim
|
||||||
|
|
||||||
#RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
|
ARG ROMPR_VERSION=1.55
|
||||||
|
# Install packages
|
||||||
ARG DEV_PKGS='zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev \
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
libcurl4-gnutls-dev default-libmysqlclient-dev'
|
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
||||||
|
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list && \
|
||||||
RUN apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y imagemagick git bash procps \
|
apt-get -y install \
|
||||||
${DEV_PKGS} && \
|
nginx \
|
||||||
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
php-fpm \
|
||||||
docker-php-ext-install -j$(nproc) gd && \
|
curl \
|
||||||
docker-php-ext-install -j$(nproc) json && \
|
php-mysql \
|
||||||
docker-php-ext-install -j$(nproc) curl && \
|
php-curl \
|
||||||
docker-php-ext-install -j$(nproc) mysqli && \
|
php-gd \
|
||||||
docker-php-ext-install -j$(nproc) pdo pdo_mysql
|
unzip \
|
||||||
|
imagemagick \
|
||||||
|
php-json \
|
||||||
|
php-xml \
|
||||||
|
php-mbstring \
|
||||||
|
php-sqlite3 \
|
||||||
|
php-intl
|
||||||
# CLeanup
|
# CLeanup
|
||||||
RUN apt-get remove -y --purge ${DEV_PKGS} && \
|
RUN apt-get remove -y --purge ${DEV_PKGS} && \
|
||||||
apt-get autoremove --purge -y && \
|
apt-get autoremove --purge -y && \
|
||||||
@@ -22,4 +27,29 @@ RUN apt-get remove -y --purge ${DEV_PKGS} && \
|
|||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /var/cache/apt/* /tmp/* /var/tmp/* /var/log/*
|
rm -rf /var/cache/apt/* /tmp/* /var/tmp/* /var/log/*
|
||||||
|
|
||||||
VOLUME [ "/rompr" ]
|
RUN curl -k -L -o rompr.zip https://github.com/fatg3erman/RompR/releases/download/${ROMPR_VERSION}/rompr-${ROMPR_VERSION}.zip
|
||||||
|
RUN mkdir -p /app
|
||||||
|
RUN unzip -d /app rompr.zip && rm rompr.zip
|
||||||
|
RUN mkdir -p /rompr
|
||||||
|
RUN ln -sf /rompr/prefs /app/rompr/prefs
|
||||||
|
RUN ln -sf /rompr/albumart /app/rompr/albumart
|
||||||
|
RUN chown -R www-data:www-data /app/rompr /rompr
|
||||||
|
COPY nginx_default /etc/nginx/sites-available/default
|
||||||
|
RUN mkdir -p /run/php/
|
||||||
|
#Environment variables to configure php
|
||||||
|
RUN sed -ri -e 's/^allow_url_fopen =.*/allow_url_fopen = On/g' /etc/php/7.3/fpm/php.ini
|
||||||
|
RUN sed -ri -e 's/^memory_limit =.*/memory_limit = 128M/g' /etc/php/7.3/fpm/php.ini
|
||||||
|
RUN sed -ri -e 's/^max_execution_time =.*/max_execution_time = 1800/g' /etc/php/7.3/fpm/php.ini
|
||||||
|
RUN sed -ri -e 's/^post_max_size =.*/post_max_size = 256M/g' /etc/php/7.3/fpm/php.ini
|
||||||
|
RUN sed -ri -e 's/^upload_max_filesize =.*/upload_max_filesize = 8M/g' /etc/php/7.3/fpm/php.ini
|
||||||
|
RUN sed -ri -e 's/^max_file_uploads =.*/max_file_uploads = 50/g' /etc/php/7.3/fpm/php.ini
|
||||||
|
RUN sed -ri -e 's/^display_errors =.*/display_errors = On/g' /etc/php/7.3/fpm/php.ini
|
||||||
|
RUN sed -ri -e 's/^display_startup_errors =.*/display_startup_errors = On/g' /etc/php/7.3/fpm/php.ini
|
||||||
|
|
||||||
|
RUN echo "<?php phpinfo(); ?>" > /app/rompr/phpinfo.php
|
||||||
|
RUN update-rc.d php7.3-fpm defaults
|
||||||
|
COPY run-httpd /usr/local/bin/
|
||||||
|
RUN chmod 755 /usr/local/bin/run-httpd
|
||||||
|
EXPOSE 80
|
||||||
|
VOLUME ["/rompr"]
|
||||||
|
CMD ["/usr/local/bin/run-httpd"]
|
||||||
|
|||||||
@@ -15,33 +15,19 @@ spec:
|
|||||||
app: rompr
|
app: rompr
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: docker-registry.lan/rompr:arm64
|
- image: cr.lan/rompr
|
||||||
name: rompr
|
name: rompr
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9000
|
|
||||||
name: php-fpm
|
|
||||||
volumeMounts:
|
|
||||||
- name: rompr-data
|
|
||||||
mountPath: /rompr
|
|
||||||
- image: sebp/lighttpd:latest
|
|
||||||
name: lighttpd
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: rompr-data
|
- name: rompr-data
|
||||||
mountPath: /rompr
|
mountPath: /rompr
|
||||||
- name: rompr-lighttpd-config
|
|
||||||
mountPath: /etc/lighttpd
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: rompr-data
|
- name: rompr-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: rompr-data
|
claimName: rompr-data
|
||||||
- name: rompr-lighttpd-config
|
|
||||||
configMap:
|
|
||||||
name: rompr-lighttpd-config
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
@@ -1,335 +0,0 @@
|
|||||||
###############################################################################
|
|
||||||
# Default lighttpd.conf for Gentoo.
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/lighttpd.conf,v 1.3 2005/09/01 14:22:35 ka0ttic Exp $
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
# {{{ variables
|
|
||||||
var.basedir = "/rompr"
|
|
||||||
var.logdir = "/var/log/lighttpd"
|
|
||||||
var.statedir = "/var/lib/lighttpd"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ modules
|
|
||||||
# At the very least, mod_access and mod_accesslog should be enabled.
|
|
||||||
# All other modules should only be loaded if necessary.
|
|
||||||
# NOTE: the order of modules is important.
|
|
||||||
server.modules = (
|
|
||||||
"mod_rewrite",
|
|
||||||
"mod_redirect",
|
|
||||||
"mod_alias",
|
|
||||||
"mod_access",
|
|
||||||
# "mod_cml",
|
|
||||||
# "mod_trigger_b4_dl",
|
|
||||||
# "mod_auth",
|
|
||||||
# "mod_status",
|
|
||||||
# "mod_setenv",
|
|
||||||
# "mod_proxy",
|
|
||||||
# "mod_simple_vhost",
|
|
||||||
# "mod_evhost",
|
|
||||||
# "mod_userdir",
|
|
||||||
"mod_compress",
|
|
||||||
# "mod_ssi",
|
|
||||||
# "mod_usertrack",
|
|
||||||
"mod_expire",
|
|
||||||
# "mod_secdownload",
|
|
||||||
# "mod_rrdtool",
|
|
||||||
# "mod_webdav",
|
|
||||||
# "mod_accesslog"
|
|
||||||
)
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ includes
|
|
||||||
include "mime-types.conf"
|
|
||||||
# uncomment for cgi support
|
|
||||||
# include "mod_cgi.conf"
|
|
||||||
# uncomment for php/fastcgi support
|
|
||||||
# include "mod_fastcgi.conf"
|
|
||||||
# uncomment for php/fastcgi fpm support
|
|
||||||
include "mod_fastcgi_fpm.conf"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ server settings
|
|
||||||
server.username = "lighttpd"
|
|
||||||
server.groupname = "www-data"
|
|
||||||
|
|
||||||
server.document-root = var.basedir
|
|
||||||
server.pid-file = "/run/lighttpd.pid"
|
|
||||||
|
|
||||||
#server.errorlog = "/dev/pts/0"
|
|
||||||
# log errors to syslog instead
|
|
||||||
# server.errorlog-use-syslog = "enable"
|
|
||||||
|
|
||||||
server.indexfiles = ("index.php")
|
|
||||||
|
|
||||||
# server.tag = "lighttpd"
|
|
||||||
|
|
||||||
server.follow-symlink = "enable"
|
|
||||||
|
|
||||||
# ROMPR
|
|
||||||
# Expire header for RompR albumart
|
|
||||||
expire.url = ( "/albumart/" => "modification plus 1 seconds" )
|
|
||||||
# This sets the 404 page globally for the server which is OK if you're only
|
|
||||||
# running RompR but will affect other sites on your system.
|
|
||||||
# If you have other sites on this system then you should maybe look at virtual hosts.
|
|
||||||
# If you don't use the custom 404 page for RompR your album art manager will
|
|
||||||
# not work correctly.
|
|
||||||
server.error-handler-404 = "404.php"
|
|
||||||
# ROMPR END
|
|
||||||
|
|
||||||
# event handler (defaults to "poll")
|
|
||||||
# see performance.txt
|
|
||||||
#
|
|
||||||
# for >= linux-2.4
|
|
||||||
# server.event-handler = "linux-rtsig"
|
|
||||||
# for >= linux-2.6
|
|
||||||
# server.event-handler = "linux-sysepoll"
|
|
||||||
# for FreeBSD
|
|
||||||
# server.event-handler = "freebsd-kqueue"
|
|
||||||
|
|
||||||
# chroot to directory (defaults to no chroot)
|
|
||||||
# server.chroot = "/"
|
|
||||||
|
|
||||||
# bind to port (defaults to 80)
|
|
||||||
# server.port = 81
|
|
||||||
|
|
||||||
# bind to name (defaults to all interfaces)
|
|
||||||
# server.bind = "grisu.home.kneschke.de"
|
|
||||||
|
|
||||||
# error-handler for status 404
|
|
||||||
# server.error-handler-404 = "/error-handler.html"
|
|
||||||
# server.error-handler-404 = "/error-handler.php"
|
|
||||||
|
|
||||||
# Format: <errorfile-prefix><status-code>.html
|
|
||||||
# -> ..../status-404.html for 'File not found'
|
|
||||||
# server.errorfile-prefix = var.basedir + "/error/status-"
|
|
||||||
|
|
||||||
# FAM support for caching stat() calls
|
|
||||||
# requires that lighttpd be built with USE=fam
|
|
||||||
# server.stat-cache-engine = "fam"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_staticfile
|
|
||||||
|
|
||||||
# which extensions should not be handled via static-file transfer
|
|
||||||
# (extensions that are usually handled by mod_cgi, mod_fastcgi, etc).
|
|
||||||
static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_accesslog
|
|
||||||
# accesslog.filename = "/dev/pts/0"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_dirlisting
|
|
||||||
# enable directory listings
|
|
||||||
# dir-listing.activate = "enable"
|
|
||||||
#
|
|
||||||
# don't list hidden files/directories
|
|
||||||
# dir-listing.hide-dotfiles = "enable"
|
|
||||||
#
|
|
||||||
# use a different css for directory listings
|
|
||||||
# dir-listing.external-css = "/path/to/dir-listing.css"
|
|
||||||
#
|
|
||||||
# list of regular expressions. files that match any of the
|
|
||||||
# specified regular expressions will be excluded from directory
|
|
||||||
# listings.
|
|
||||||
# dir-listing.exclude = ("^\.", "~$")
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_access
|
|
||||||
# see access.txt
|
|
||||||
|
|
||||||
url.access-deny = ("~", ".inc")
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_userdir
|
|
||||||
# see userdir.txt
|
|
||||||
#
|
|
||||||
# userdir.path = "public_html"
|
|
||||||
# userdir.exclude-user = ("root")
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_ssi
|
|
||||||
# see ssi.txt
|
|
||||||
#
|
|
||||||
# ssi.extension = (".shtml")
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_ssl
|
|
||||||
# see ssl.txt
|
|
||||||
#
|
|
||||||
# ssl.engine = "enable"
|
|
||||||
# ssl.pemfile = "server.pem"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_status
|
|
||||||
# see status.txt
|
|
||||||
#
|
|
||||||
# status.status-url = "/server-status"
|
|
||||||
# status.config-url = "/server-config"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_simple_vhost
|
|
||||||
# see simple-vhost.txt
|
|
||||||
#
|
|
||||||
# If you want name-based virtual hosting add the next three settings and load
|
|
||||||
# mod_simple_vhost
|
|
||||||
#
|
|
||||||
# document-root =
|
|
||||||
# virtual-server-root + virtual-server-default-host + virtual-server-docroot
|
|
||||||
# or
|
|
||||||
# virtual-server-root + http-host + virtual-server-docroot
|
|
||||||
#
|
|
||||||
# simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
|
|
||||||
# simple-vhost.default-host = "grisu.home.kneschke.de"
|
|
||||||
# simple-vhost.document-root = "/pages/"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_compress
|
|
||||||
# see compress.txt
|
|
||||||
#
|
|
||||||
compress.cache-dir = "/tmp"
|
|
||||||
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
|
|
||||||
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_proxy
|
|
||||||
# see proxy.txt
|
|
||||||
#
|
|
||||||
# proxy.server = ( ".php" =>
|
|
||||||
# ( "localhost" =>
|
|
||||||
# (
|
|
||||||
# "host" => "192.168.0.101",
|
|
||||||
# "port" => 80
|
|
||||||
# )
|
|
||||||
# )
|
|
||||||
# )
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_auth
|
|
||||||
# see authentication.txt
|
|
||||||
#
|
|
||||||
# auth.backend = "plain"
|
|
||||||
# auth.backend.plain.userfile = "lighttpd.user"
|
|
||||||
# auth.backend.plain.groupfile = "lighttpd.group"
|
|
||||||
|
|
||||||
# auth.backend.ldap.hostname = "localhost"
|
|
||||||
# auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
|
|
||||||
# auth.backend.ldap.filter = "(uid=$)"
|
|
||||||
|
|
||||||
# auth.require = ( "/server-status" =>
|
|
||||||
# (
|
|
||||||
# "method" => "digest",
|
|
||||||
# "realm" => "download archiv",
|
|
||||||
# "require" => "user=jan"
|
|
||||||
# ),
|
|
||||||
# "/server-info" =>
|
|
||||||
# (
|
|
||||||
# "method" => "digest",
|
|
||||||
# "realm" => "download archiv",
|
|
||||||
# "require" => "valid-user"
|
|
||||||
# )
|
|
||||||
# )
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_rewrite
|
|
||||||
# see rewrite.txt
|
|
||||||
#
|
|
||||||
# url.rewrite = (
|
|
||||||
# "^/$" => "/server-status"
|
|
||||||
# )
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_redirect
|
|
||||||
# see redirect.txt
|
|
||||||
#
|
|
||||||
# url.redirect = (
|
|
||||||
# "^/wishlist/(.+)" => "http://www.123.org/$1"
|
|
||||||
# )
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_evhost
|
|
||||||
# define a pattern for the host url finding
|
|
||||||
# %% => % sign
|
|
||||||
# %0 => domain name + tld
|
|
||||||
# %1 => tld
|
|
||||||
# %2 => domain name without tld
|
|
||||||
# %3 => subdomain 1 name
|
|
||||||
# %4 => subdomain 2 name
|
|
||||||
#
|
|
||||||
# evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_expire
|
|
||||||
# expire.url = (
|
|
||||||
# "/buggy/" => "access 2 hours",
|
|
||||||
# "/asdhas/" => "access plus 1 seconds 2 minutes"
|
|
||||||
# )
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_rrdtool
|
|
||||||
# see rrdtool.txt
|
|
||||||
#
|
|
||||||
# rrdtool.binary = "/usr/bin/rrdtool"
|
|
||||||
# rrdtool.db-name = var.statedir + "/lighttpd.rrd"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_setenv
|
|
||||||
# see setenv.txt
|
|
||||||
#
|
|
||||||
# setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
|
|
||||||
# setenv.add-response-header = ( "X-Secret-Message" => "42" )
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_trigger_b4_dl
|
|
||||||
# see trigger_b4_dl.txt
|
|
||||||
#
|
|
||||||
# trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
|
|
||||||
# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
|
|
||||||
# trigger-before-download.trigger-url = "^/trigger/"
|
|
||||||
# trigger-before-download.download-url = "^/download/"
|
|
||||||
# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
|
|
||||||
# trigger-before-download.trigger-timeout = 10
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_cml
|
|
||||||
# see cml.txt
|
|
||||||
#
|
|
||||||
# don't forget to add index.cml to server.indexfiles
|
|
||||||
# cml.extension = ".cml"
|
|
||||||
# cml.memcache-hosts = ( "127.0.0.1:11211" )
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ mod_webdav
|
|
||||||
# see webdav.txt
|
|
||||||
#
|
|
||||||
# $HTTP["url"] =~ "^/dav($|/)" {
|
|
||||||
# webdav.activate = "enable"
|
|
||||||
# webdav.is-readonly = "enable"
|
|
||||||
# }
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ extra rules
|
|
||||||
#
|
|
||||||
# set Content-Encoding and reset Content-Type for browsers that
|
|
||||||
# support decompressing on-thy-fly (requires mod_setenv)
|
|
||||||
# $HTTP["url"] =~ "\.gz$" {
|
|
||||||
# setenv.add-response-header = ("Content-Encoding" => "x-gzip")
|
|
||||||
# mimetype.assign = (".gz" => "text/plain")
|
|
||||||
# }
|
|
||||||
|
|
||||||
# $HTTP["url"] =~ "\.bz2$" {
|
|
||||||
# setenv.add-response-header = ("Content-Encoding" => "x-bzip2")
|
|
||||||
# mimetype.assign = (".bz2" => "text/plain")
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# {{{ debug
|
|
||||||
# debug.log-request-header = "enable"
|
|
||||||
# debug.log-response-header = "enable"
|
|
||||||
# debug.log-request-handling = "enable"
|
|
||||||
# debug.log-file-not-found = "enable"
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# vim: set ft=conf foldmethod=marker et :
|
|
||||||
server.network-backend = "writev"
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
###############################################################################
|
|
||||||
# Default mime-types.conf for Gentoo.
|
|
||||||
# include'd from lighttpd.conf.
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mime-types.conf,v 1.4 2010/03/14 21:45:18 bangert Exp $
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
# {{{ mime types
|
|
||||||
mimetype.assign = (
|
|
||||||
".svg" => "image/svg+xml",
|
|
||||||
".svgz" => "image/svg+xml",
|
|
||||||
".pdf" => "application/pdf",
|
|
||||||
".sig" => "application/pgp-signature",
|
|
||||||
".spl" => "application/futuresplash",
|
|
||||||
".class" => "application/octet-stream",
|
|
||||||
".ps" => "application/postscript",
|
|
||||||
".torrent" => "application/x-bittorrent",
|
|
||||||
".dvi" => "application/x-dvi",
|
|
||||||
".gz" => "application/x-gzip",
|
|
||||||
".pac" => "application/x-ns-proxy-autoconfig",
|
|
||||||
".swf" => "application/x-shockwave-flash",
|
|
||||||
".tar.gz" => "application/x-tgz",
|
|
||||||
".tgz" => "application/x-tgz",
|
|
||||||
".tar" => "application/x-tar",
|
|
||||||
".zip" => "application/zip",
|
|
||||||
".dmg" => "application/x-apple-diskimage",
|
|
||||||
".mp3" => "audio/mpeg",
|
|
||||||
".m3u" => "audio/x-mpegurl",
|
|
||||||
".wma" => "audio/x-ms-wma",
|
|
||||||
".wax" => "audio/x-ms-wax",
|
|
||||||
".ogg" => "application/ogg",
|
|
||||||
".wav" => "audio/x-wav",
|
|
||||||
".gif" => "image/gif",
|
|
||||||
".jpg" => "image/jpeg",
|
|
||||||
".jpeg" => "image/jpeg",
|
|
||||||
".png" => "image/png",
|
|
||||||
".xbm" => "image/x-xbitmap",
|
|
||||||
".xpm" => "image/x-xpixmap",
|
|
||||||
".xwd" => "image/x-xwindowdump",
|
|
||||||
".css" => "text/css",
|
|
||||||
".html" => "text/html",
|
|
||||||
".htm" => "text/html",
|
|
||||||
".js" => "text/javascript",
|
|
||||||
".asc" => "text/plain",
|
|
||||||
".c" => "text/plain",
|
|
||||||
".h" => "text/plain",
|
|
||||||
".cc" => "text/plain",
|
|
||||||
".cpp" => "text/plain",
|
|
||||||
".hh" => "text/plain",
|
|
||||||
".hpp" => "text/plain",
|
|
||||||
".conf" => "text/plain",
|
|
||||||
".log" => "text/plain",
|
|
||||||
".text" => "text/plain",
|
|
||||||
".txt" => "text/plain",
|
|
||||||
".diff" => "text/plain",
|
|
||||||
".patch" => "text/plain",
|
|
||||||
".ebuild" => "text/plain",
|
|
||||||
".eclass" => "text/plain",
|
|
||||||
".rtf" => "application/rtf",
|
|
||||||
".bmp" => "image/bmp",
|
|
||||||
".tif" => "image/tiff",
|
|
||||||
".tiff" => "image/tiff",
|
|
||||||
".ico" => "image/x-icon",
|
|
||||||
".dtd" => "text/xml",
|
|
||||||
".xml" => "text/xml",
|
|
||||||
".mpeg" => "video/mpeg",
|
|
||||||
".mpg" => "video/mpeg",
|
|
||||||
".mov" => "video/quicktime",
|
|
||||||
".qt" => "video/quicktime",
|
|
||||||
".avi" => "video/x-msvideo",
|
|
||||||
".asf" => "video/x-ms-asf",
|
|
||||||
".asx" => "video/x-ms-asf",
|
|
||||||
".wmv" => "video/x-ms-wmv",
|
|
||||||
".bz2" => "application/x-bzip",
|
|
||||||
".tbz" => "application/x-bzip-compressed-tar",
|
|
||||||
".tar.bz2" => "application/x-bzip-compressed-tar"
|
|
||||||
)
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# vim: set ft=conf foldmethod=marker et :
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
###############################################################################
|
|
||||||
# mod_cgi.conf
|
|
||||||
# include'd by lighttpd.conf.
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mod_cgi.conf,v 1.1 2005/08/27 12:36:13 ka0ttic Exp $
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
#
|
|
||||||
# see cgi.txt for more information on using mod_cgi
|
|
||||||
#
|
|
||||||
|
|
||||||
server.modules += ("mod_cgi")
|
|
||||||
|
|
||||||
# NOTE: this requires mod_alias
|
|
||||||
alias.url = (
|
|
||||||
"/cgi-bin/" => var.basedir + "/cgi-bin/"
|
|
||||||
)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Note that you'll also want to enable the
|
|
||||||
# cgi-bin alias via mod_alias (above).
|
|
||||||
#
|
|
||||||
|
|
||||||
$HTTP["url"] =~ "^/cgi-bin/" {
|
|
||||||
# disable directory listings
|
|
||||||
dir-listing.activate = "disable"
|
|
||||||
# only allow cgi's in this directory
|
|
||||||
cgi.assign = (
|
|
||||||
".pl" => "/usr/bin/perl",
|
|
||||||
".cgi" => "/usr/bin/perl"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim: set ft=conf foldmethod=marker et :
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
###############################################################################
|
|
||||||
# mod_fastcgi.conf
|
|
||||||
# include'd by lighttpd.conf.
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mod_fastcgi.conf-1.4.13-r2,v 1.1 2007/04/01 23:22:00 robbat2 Exp $
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
server.modules += ("mod_fastcgi")
|
|
||||||
fastcgi.server = ( ".php" =>
|
|
||||||
( "localhost" =>
|
|
||||||
(
|
|
||||||
"socket" => "/run/lighttpd/lighttpd-fastcgi-php-" + PID + ".socket",
|
|
||||||
"bin-path" => "/usr/bin/php-cgi"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
# vim: set ft=conf foldmethod=marker et :
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
###############################################################################
|
|
||||||
# mod_fastcgi_fpm.conf
|
|
||||||
# include'd by lighttpd.conf.
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
server.modules += ("mod_fastcgi")
|
|
||||||
fastcgi.server = ( ".php" =>
|
|
||||||
(
|
|
||||||
(
|
|
||||||
"host" => "127.0.0.1",
|
|
||||||
"port" => "9000"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
# vim: set ft=conf foldmethod=marker et :
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# Expire header for RompR albumart
|
|
||||||
expire.url = ( "/albumart/" => "modification plus 1 seconds" )
|
|
||||||
# This sets the 404 page globally for the server which is OK if you're only
|
|
||||||
# running RompR but will affect other sites on your system.
|
|
||||||
# If you have other sites on this system then you should maybe look at virtual hosts.
|
|
||||||
# If you don't use the custom 404 page for RompR your album art manager will
|
|
||||||
# not work correctly.
|
|
||||||
server.error-handler-404 = "404.php"
|
|
||||||
|
|
||||||
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
|
|
||||||
url.access-deny = ( "~", ".inc" )
|
|
||||||
#static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
|
|
||||||
|
|
||||||
compress.cache-dir = "/var/cache/lighttpd/compress/"
|
|
||||||
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
|
|
||||||
36
apps/web/rompr/nginx_default
Normal file
36
apps/web/rompr/nginx_default
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Default server configuration
|
||||||
|
#
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
root /app/rompr;
|
||||||
|
|
||||||
|
# Add index.php to the list if you are using PHP
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
|
server_name _;
|
||||||
|
|
||||||
|
client_max_body_size 256M;
|
||||||
|
|
||||||
|
# This section can be copied into an existing default setup
|
||||||
|
location / {
|
||||||
|
allow all;
|
||||||
|
access_log off;
|
||||||
|
index index.php;
|
||||||
|
location ~ \.php {
|
||||||
|
try_files $uri index.php =404;
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
|
include /etc/nginx/fastcgi_params;
|
||||||
|
fastcgi_read_timeout 1800;
|
||||||
|
}
|
||||||
|
error_page 404 = /404.php;
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
location ~ /albumart/* {
|
||||||
|
expires -1s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
7
apps/web/rompr/run-httpd
Normal file
7
apps/web/rompr/run-httpd
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
rm -f /var/run/nginx.pid
|
||||||
|
mkdir -p /var/log/nginx
|
||||||
|
set -e
|
||||||
|
|
||||||
|
/etc/init.d/php7.3-fpm restart
|
||||||
|
exec /usr/sbin/nginx -g 'daemon off;'
|
||||||
77
apps/web/rompr/tekton-image-build.yaml
Normal file
77
apps/web/rompr/tekton-image-build.yaml
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-rompr
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/rompr
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-rompr
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/web/rompr/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/apps/web/rompr
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
type: git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
type: image
|
||||||
|
steps:
|
||||||
|
- name: build-and-push
|
||||||
|
image: gcr.io/kaniko-project/executor:arm64
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.pathToDockerFile)
|
||||||
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
|
- --context=$(params.pathToContext)
|
||||||
|
- --snapshotMode=redo
|
||||||
|
- --skip-tls-verify
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-rompr-taskrun
|
||||||
|
spec:
|
||||||
|
#serviceAccountName: dockerhub-service
|
||||||
|
taskRef:
|
||||||
|
name: build-rompr
|
||||||
|
params:
|
||||||
|
- name: pathToDockerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-rompr
|
||||||
|
|
||||||
|
|
||||||
Submodule cluster-monitoring updated: f0581d44d4...a63473c6d1
7
cluster-monitoring-local/additional-scrape-configs.yaml
Normal file
7
cluster-monitoring-local/additional-scrape-configs.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
prometheus-additional.yaml: LSBqb2JfbmFtZTogZ2l0ZWEKICBzdGF0aWNfY29uZmlnczoKICAtIHRhcmdldHM6CiAgICAtIGdpdC11aS5sYW4KLSBqb2JfbmFtZTogbXlzcWxkCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBtYXJpYWRiLmxhbjo5MTA0Ci0gam9iX25hbWU6IG1xdHQubW9zcXVpdHRvCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBtcXR0Lmxhbjo5MjM0Ci0gam9iX25hbWU6IGhhcHJveHkKICBzdGF0aWNfY29uZmlnczoKICAtIHRhcmdldHM6CiAgICAtIGFkbTAxLndrczo5MTAxCiAgICAtIGRydWNraS53a3M6OTEwMQogICAgLSBhdXRvMDIuY2hhb3M6OTEwMQotIGpvYl9uYW1lOiBrbGlwcGVyCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBkcnVja2kud2tzOjM5MDMKLSBqb2JfbmFtZTogb2N0b3ByaW50CiAgbWV0cmljc19wYXRoOiAvcGx1Z2luL3Byb21ldGhldXNfZXhwb3J0ZXIvbWV0cmljcwogIHBhcmFtczoKICAgIGFwaWtleToKICAgIC0gMzBFOEIwMUJGRDY3NEU1QkJENDQ2RDA4QzQ3MzBERjQKICBzdGF0aWNfY29uZmlnczoKICAtIHRhcmdldHM6CiAgICAtIGRydWNraS53a3M6ODAKLSBqb2JfbmFtZTogaGFzc2lvCiAgbWV0cmljc19wYXRoOiAvYXBpL3Byb21ldGhldXMKICBiZWFyZXJfdG9rZW46ICdleUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcGMzTWlPaUpoTXpCbVlqVTFaamN5WkdFMFl6YzJZbVUyTm1ZME5qbGpOVEF5TWpkalpDSXNJbWxoZENJNk1UWXhNamc0TXpJNU55d2laWGh3SWpveE9USTRNalF6TWprM2ZRLjFJQ3NIbGlVWFIwQ0c0SDh2UVJZSjVqVnFGd21xS1NCMGZTY1NpdEMtUTQnCiAgc3RhdGljX2NvbmZpZ3M6CiAgICAtIHRhcmdldHM6CiAgICAgIC0gaGFzc2lvLmxhbjo4MAotIGpvYl9uYW1lOiBoYXNzaW9fcmluZzg2CiAgbWV0cmljc19wYXRoOiAvYXBpL3Byb21ldGhldXMKICBiZWFyZXJfdG9rZW46ICdleUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcGMzTWlPaUkwT0dGalpUSmlObVEzT1RnME1qYzNZV0ZtTW1ObVptVTFZemM0TlRFME5DSXNJbWxoZENJNk1UWXhNakU1TWprME1Dd2laWGh3SWpveE9USTNOVFV5T1RRd2ZRLkJiSUFYbTlScTBqYjZvdXFnVkhOZDZLZWV6M05QM3loLTd3eWZ1b0I4WWsnCiAgc3RhdGljX2NvbmZpZ3M6CiAgICAtIHRhcmdldHM6CiAgICAgIC0gYXV0by5jaGFvczo4MAotIGpvYl9uYW1lOiBub2RlCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBhZG0wMS53a3M6OTEwMAogICAgLSBkdW1vbnQud2tzOjkxMDAKICAgIC0gZHJ1Y2tpLndrczo5MTAwCiAgICAtIGViaW4wMS53a3M6OTEwMAogICAgLSBlYmluMDIud2tzOjkxMDAKICAgIC0gb3NtYy53a3M6OTEwMAogICAgLSByaW90MDEud2tzOjkxMDAKICAgIC0gdHJ1aGUuY2hhb3M6OTEwMAogICAgLSBhdXRvMDEuY2hhb3M6OTEwMAogICAgLSBhdXRvMDIuY2hhb3M6OTEwMAogICAgLSBkdW1vbnQuY2hhb3M6OTEwMAogICAgLSB0dW1vci5jaGFvczo5MTAwCiAgICAtIHdvaG56LmNoYW9zOjkxMDAK
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: additional-scrape-configs
|
||||||
58
cluster-monitoring-local/prometheus-additional.yaml
Normal file
58
cluster-monitoring-local/prometheus-additional.yaml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
- job_name: gitea
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- git-ui.lan
|
||||||
|
- job_name: mysqld
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- mariadb.lan:9104
|
||||||
|
- job_name: mqtt.mosquitto
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- mqtt.lan:9234
|
||||||
|
- job_name: haproxy
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- adm01.wks:9101
|
||||||
|
- drucki.wks:9101
|
||||||
|
- auto02.chaos:9101
|
||||||
|
- job_name: klipper
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- drucki.wks:3903
|
||||||
|
- job_name: octoprint
|
||||||
|
metrics_path: /plugin/prometheus_exporter/metrics
|
||||||
|
params:
|
||||||
|
apikey:
|
||||||
|
- 30E8B01BFD674E5BBD446D08C4730DF4
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- drucki.wks:80
|
||||||
|
- job_name: hassio
|
||||||
|
metrics_path: /api/prometheus
|
||||||
|
bearer_token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhMzBmYjU1ZjcyZGE0Yzc2YmU2NmY0NjljNTAyMjdjZCIsImlhdCI6MTYxMjg4MzI5NywiZXhwIjoxOTI4MjQzMjk3fQ.1ICsHliUXR0CG4H8vQRYJ5jVqFwmqKSB0fScSitC-Q4'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- hassio.lan:80
|
||||||
|
- job_name: hassio_ring86
|
||||||
|
metrics_path: /api/prometheus
|
||||||
|
bearer_token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI0OGFjZTJiNmQ3OTg0Mjc3YWFmMmNmZmU1Yzc4NTE0NCIsImlhdCI6MTYxMjE5Mjk0MCwiZXhwIjoxOTI3NTUyOTQwfQ.BbIAXm9Rq0jb6ouqgVHNd6Keez3NP3yh-7wyfuoB8Yk'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- auto.chaos:80
|
||||||
|
- job_name: node
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- adm01.wks:9100
|
||||||
|
- dumont.wks:9100
|
||||||
|
- drucki.wks:9100
|
||||||
|
- ebin01.wks:9100
|
||||||
|
- ebin02.wks:9100
|
||||||
|
- osmc.wks:9100
|
||||||
|
- riot01.wks:9100
|
||||||
|
- truhe.chaos:9100
|
||||||
|
- auto01.chaos:9100
|
||||||
|
- auto02.chaos:9100
|
||||||
|
- dumont.chaos:9100
|
||||||
|
- tumor.chaos:9100
|
||||||
|
- wohnz.chaos:9100
|
||||||
41
cluster-monitoring-local/pvs.yaml
Normal file
41
cluster-monitoring-local/pvs.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: prometheus-db
|
||||||
|
annotations:
|
||||||
|
pv.kubernetes.io/pirvisioned-by: nfs-ssd
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-ssd"
|
||||||
|
nfs:
|
||||||
|
path: /data/raid1-ssd/k8s-data/prometheus-db
|
||||||
|
server: ebin01
|
||||||
|
capacity:
|
||||||
|
storage: 40Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
claimRef:
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
name: prometheus-k8s-db-prometheus-k8s-0
|
||||||
|
namespace: monitoring
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: grafana-conf
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-ssd"
|
||||||
|
nfs:
|
||||||
|
path: /data/raid1-ssd/k8s-data/grafana-conf
|
||||||
|
server: ebin01
|
||||||
|
capacity:
|
||||||
|
storage: 40Mi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
claimRef:
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
name: grafana-conf
|
||||||
|
namespace: monitoring
|
||||||
Submodule csi-s3/external-provisioner updated: 321fa5c1c9...ad532dc997
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: admin-user
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: cluster-admin
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: admin-user
|
|
||||||
namespace: kubernetes-dashboard
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: admin-user
|
|
||||||
namespace: kubernetes-dashboard
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: extensions/v1beta1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: k8s-dashboard
|
|
||||||
namespace: kubernetes-dashboard
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: k8s-dashboard.lan
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- backend:
|
|
||||||
serviceName: kubernetes-dashboard
|
|
||||||
servicePort: http
|
|
||||||
path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
status:
|
|
||||||
loadBalancer: {}
|
|
||||||
|
|
||||||
Submodule external-storage deleted from ea9eda7019
@@ -1,35 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: kube-dns-tcp
|
|
||||||
namespace: kube-system
|
|
||||||
annotations:
|
|
||||||
metallb.universe.tf/address-pool: default
|
|
||||||
metallb.universe.tf/allow-shared-ip: pihole-svc
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
k8s-app: kube-dns
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 53
|
|
||||||
targetPort: 53
|
|
||||||
type: LoadBalancer
|
|
||||||
loadBalancerIP: 172.23.255.253
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: kube-dns-udp
|
|
||||||
namespace: kube-system
|
|
||||||
annotations:
|
|
||||||
metallb.universe.tf/address-pool: default
|
|
||||||
metallb.universe.tf/allow-shared-ip: pihole-svc
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
k8s-app: kube-dns
|
|
||||||
ports:
|
|
||||||
- protocol: UDP
|
|
||||||
port: 53
|
|
||||||
targetPort: 53
|
|
||||||
type: LoadBalancer
|
|
||||||
loadBalancerIP: 172.23.255.253
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
prometheus-additional.yaml: LSBqb2JfbmFtZTogbXlzcWxkCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBtYXJpYWRiLmxhbjo5MTA0Ci0gam9iX25hbWU6IG1xdHQubW9zcXVpdHRvCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBtcXR0Lmxhbjo5MjM0Ci0gam9iX25hbWU6IGhhcHJveHkKICBzdGF0aWNfY29uZmlnczoKICAtIHRhcmdldHM6CiAgICAtIGRydWNraS53a3M6OTEwMQogICAgLSByaW90MDEuY2hhb3M6OTEwMQogICAgLSBhdXRvOjkxMDEKLSBqb2JfbmFtZToga2xpcHBlcgogIHN0YXRpY19jb25maWdzOgogIC0gdGFyZ2V0czoKICAgIC0gZHJ1Y2tpLndrczozOTAzCi0gam9iX25hbWU6IG9jdG9wcmludAogIG1ldHJpY3NfcGF0aDogL3BsdWdpbi9wcm9tZXRoZXVzX2V4cG9ydGVyL21ldHJpY3MKICBwYXJhbXM6CiAgICBhcGlrZXk6CiAgICAtIDMwRThCMDFCRkQ2NzRFNUJCRDQ0NkQwOEM0NzMwREY0CiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBkcnVja2kud2tzOjgwCi0gam9iX25hbWU6IG9wZW5oYWIyCiAgbWV0cmljc19wYXRoOiAvCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBhdXRvLmNoYW9zOjk5OTkKLSBqb2JfbmFtZTogbm9kZQogIHN0YXRpY19jb25maWdzOgogIC0gdGFyZ2V0czoKICAgIC0gZHVtb250LmNoYW9zOjkxMDAKICAgIC0gZHVtb250Lndrczo5MTAwCiAgICAtIGF1dG8wMTo5MTAwCiAgICAtIGRydWNraS53a3M6OTEwMAogICAgLSBlYmluMDEuY2hhb3M6OTEwMAogICAgLSBlYmluMDIuY2hhb3M6OTEwMAogICAgLSByaW90MDEuY2hhb3M6OTEwMAogICAgLSB0cnVoZTo5MTAwCiAgICAtIHR1bW9yLmNoYW9zOjkxMDAKICAgIC0gd29obno6OTEwMAogICAgLSB5b3JpLmNoYW9zOjkxMDAK
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: additional-scrape-configs
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user