change namespace and fix name

This commit is contained in:
rasmus 2022-11-09 23:39:03 +02:00
parent ff19ca0fff
commit b2db664d31
3 changed files with 10 additions and 10 deletions

View File

@ -17,7 +17,7 @@ Watches log directory for logs, and ships them to mongo.
## Skaffold
```bash
export NS=gitdbd-iig6x
export NS=gitdbd-hbsci
kubectl apply -f k8s/dev/mongodb.yaml -n "$NS"
kubectl apply -f k8s/dev/prom.yaml -n "$NS"
skaffold dev --namespace "$NS"

View File

@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: log-shipper
name: logmower-shipper
spec:
updateStrategy:
type: RollingUpdate
@ -9,15 +9,15 @@ spec:
maxUnavailable: 50%
selector:
matchLabels:
app: log-shipper
app: logmower-shipper
template:
metadata:
labels:
app: log-shipper
app: logmower-shipper
spec:
serviceAccountName: log-shipper
serviceAccountName: logmower-shipper
containers:
- name: log-shipper
- name: logmower-shipper
image: harbor.k-space.ee/rasmus/logmower-shipper
securityContext:
runAsUser: 0
@ -73,6 +73,6 @@ spec:
apiVersion: v1
kind: ServiceAccount
metadata:
name: log-shipper
name: logmower-shipper
labels:
app: log-shipper
app: logmower-shipper

View File

@ -150,10 +150,10 @@ metadata:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: traefik-iig6x.codemowers.ee
external-dns.alpha.kubernetes.io/target: traefik-hbsci.codemowers.ee
spec:
rules:
- host: mongoexpress-iig6x.codemowers.ee
- host: mongoexpress-hbsci.codemowers.ee
http:
paths:
- pathType: Prefix