Compare commits
34 Commits
cacb1c0254
...
0.1.3
Author | SHA1 | Date | |
---|---|---|---|
150c498bfc
|
|||
29061f2bb2
|
|||
e441e3c932
|
|||
a7c087b489
|
|||
fc99d07737
|
|||
29b04e3a54
|
|||
02e78b0ad5
|
|||
e307e6d3e3
|
|||
9d8f4924ac
|
|||
356887629b
|
|||
5f5236b72e
|
|||
9e98df75cb
|
|||
355292d9fc
|
|||
11c304fbf0
|
|||
d92f5c932c
|
|||
aa4b79ee9a
|
|||
1a03ca7dfe
|
|||
847dfa0436
|
|||
dbc422e723
|
|||
50b356cac0
|
|||
1eaeeaf615
|
|||
ac3a602e26
|
|||
5959eaf1ef
|
|||
4c3c8fc71f
|
|||
0ef81f03f0
|
|||
0bd99c3fcc
|
|||
ef4209b09f
|
|||
9b6dc3c486
|
|||
3463d69782
|
|||
93adbb5173
|
|||
bcb6681440
|
|||
5d232f934f
|
|||
c79df400cb
|
|||
9fba8fd2e2
|
27
.woodpecker.yml
Normal file
27
.woodpecker.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
steps:
|
||||||
|
build:
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
repo: gitea.hottis.de/${CI_REPO}
|
||||||
|
registry: https://gitea.hottis.de/v2/
|
||||||
|
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}
|
||||||
|
username:
|
||||||
|
from_secret: system_container_registry_username
|
||||||
|
password:
|
||||||
|
from_secret: system_container_registry_password
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
when:
|
||||||
|
- event: [push, tag]
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
image: portainer/kubectl-shell:latest
|
||||||
|
secrets:
|
||||||
|
- source: kube_config
|
||||||
|
target: KUBE_CONFIG_CONTENT
|
||||||
|
commands:
|
||||||
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||||
|
- KUBECONFIG=/tmp/kubeconfig
|
||||||
|
- kubectl get nodes
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
|
@ -1,25 +1,3 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: NetworkPolicy
|
|
||||||
metadata:
|
|
||||||
namespace: mainscnt
|
|
||||||
name: deny-all-but-dns
|
|
||||||
spec:
|
|
||||||
podSelector:
|
|
||||||
matchLabels: {}
|
|
||||||
policyTypes:
|
|
||||||
- Egress
|
|
||||||
- Ingress
|
|
||||||
egress:
|
|
||||||
- to:
|
|
||||||
- namespaceSelector:
|
|
||||||
matchLabels:
|
|
||||||
kubernetes.io/metadata.name: kube-system
|
|
||||||
ports:
|
|
||||||
- protocol: UDP
|
|
||||||
port: 53
|
|
||||||
- protocol: TCP
|
|
||||||
port: 53
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -28,7 +6,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: sinkserver
|
app: sinkserver
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: sinkserver
|
app: sinkserver
|
||||||
@ -70,72 +48,3 @@ spec:
|
|||||||
- protocol: UDP
|
- protocol: UDP
|
||||||
port: 20169
|
port: 20169
|
||||||
targetPort: 20169
|
targetPort: 20169
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: NetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: allow-database-sinkserver
|
|
||||||
namespace: database
|
|
||||||
spec:
|
|
||||||
podSelector:
|
|
||||||
matchLabels:
|
|
||||||
app: timescaledb
|
|
||||||
policyTypes:
|
|
||||||
- Ingress
|
|
||||||
ingress:
|
|
||||||
- from:
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
app: sinkserver
|
|
||||||
- namespaceSelector:
|
|
||||||
matchLabels:
|
|
||||||
kubernetes.io/metadata.name: mainscnt
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 5432
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: NetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: allow-sinkserver-database
|
|
||||||
namespace: mainscnt
|
|
||||||
spec:
|
|
||||||
podSelector:
|
|
||||||
matchLabels:
|
|
||||||
app: sinkserver
|
|
||||||
policyTypes:
|
|
||||||
- Egress
|
|
||||||
egress:
|
|
||||||
- to:
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
app: timescaledb
|
|
||||||
- namespaceSelector:
|
|
||||||
matchLabels:
|
|
||||||
kubernetes.io/metadata.name: database
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 5432
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: NetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: allow-sinkserver-ingress
|
|
||||||
namespace: mainscnt
|
|
||||||
spec:
|
|
||||||
podSelector:
|
|
||||||
matchLabels:
|
|
||||||
app: sinkserver
|
|
||||||
policyTypes:
|
|
||||||
- Ingress
|
|
||||||
ingress:
|
|
||||||
- from:
|
|
||||||
- ipBlock:
|
|
||||||
cidr: 0.0.0.0/0
|
|
||||||
ports:
|
|
||||||
- protocol: UDP
|
|
||||||
port: 20169
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: mainscnt
|
|
Reference in New Issue
Block a user