install statping

This commit is contained in:
Tobias Brunner 2020-02-08 23:52:42 +01:00
parent a626b9411b
commit 836f662f2b
5 changed files with 106 additions and 0 deletions

21
_apps/statping.yaml Normal file
View file

@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: statping
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: statping
server: https://kubernetes.default.svc
project: default
source:
path: statping
repoURL: https://git.tbrnt.ch/tobru/gitops-tbrnt.git
targetRevision: HEAD
---
apiVersion: v1
kind: Namespace
metadata:
name: statping

37
statping/deployment.yaml Normal file
View file

@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: statping
namespace: statping
labels:
app: statping
spec:
selector:
matchLabels:
app: statping
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: statping
spec:
containers:
- env:
- name: SERVER_HOST
value: owntracks
- name: SERVER_PORT
value: "8083"
image: docker.io/hunterlong/statping:v0.80.70
imagePullPolicy: IfNotPresent
name: statping
ports:
- containerPort: 8080
protocol: TCP
volumeMounts:
- mountPath: /app
name: app
volumes:
- name: app
persistentVolumeClaim:
claimName: statping-data

23
statping/ingress.yaml Normal file
View file

@ -0,0 +1,23 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/ssl-redirect: "true"
labels:
app: statping
name: status
namespace: statping
spec:
rules:
- host: status.tbrnt.ch
http:
paths:
- path: /
backend:
serviceName: statping
servicePort: 80
tls:
- hosts:
- status.tbrnt.ch
secretName: status-tbrnt-ch-cert

12
statping/pvc.yaml Normal file
View file

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: statping-data
namespace: statping
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: local-path

13
statping/service.yaml Normal file
View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: statping
namespace: statping
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: statping
type: ClusterIP