Added Hexound
This commit is contained in:
21
k8s/apps/hexound/app.yaml
Normal file
21
k8s/apps/hexound/app.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: hexound
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: apps
|
||||||
|
destination:
|
||||||
|
namespace: hexound
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
source:
|
||||||
|
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: k8s/apps/hexound
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
|
prune: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
42
k8s/apps/hexound/deployment.yaml
Normal file
42
k8s/apps/hexound/deployment.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: hexound
|
||||||
|
namespace: hexound
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: hexound
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: hexound
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: hexound-repo
|
||||||
|
emptyDir: {}
|
||||||
|
initContainers:
|
||||||
|
- name: git-cloner
|
||||||
|
image: alpine/git
|
||||||
|
command:
|
||||||
|
- git
|
||||||
|
- clone
|
||||||
|
- --depth=1
|
||||||
|
- https://github.com/house-of-vanity/hexound.ru.git
|
||||||
|
- /repo
|
||||||
|
volumeMounts:
|
||||||
|
- name: hexound-repo
|
||||||
|
mountPath: /repo
|
||||||
|
containers:
|
||||||
|
- name: hexound
|
||||||
|
image: trafex/php-nginx:3.8.0
|
||||||
|
volumeMounts:
|
||||||
|
- name: hexound-repo
|
||||||
|
mountPath: /var/www/html
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8080
|
||||||
|
protocol: TCP
|
||||||
|
|
8
k8s/apps/hexound/kustomization.yaml
Normal file
8
k8s/apps/hexound/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- app.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
|
14
k8s/apps/hexound/service.yaml
Normal file
14
k8s/apps/hexound/service.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: hexound
|
||||||
|
namespace: hexound
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: hexound
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8080
|
||||||
|
|
Reference in New Issue
Block a user