add app chartmuseum
This commit is contained in:
45
apps/chartmuseum/base/deployment.yaml
Normal file
45
apps/chartmuseum/base/deployment.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: chartmuseum
|
||||
namespace: chartmuseum
|
||||
labels:
|
||||
app.kubernetes.io/name: chartmuseum
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: chartmuseum
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: chartmuseum
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
containers:
|
||||
- name: homer
|
||||
image: ghcr.io/helm/chartmuseum:v0.14.0
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
env:
|
||||
- name: DEBUG
|
||||
value: "1"
|
||||
- name: STORAGE
|
||||
value: "local"
|
||||
- name: STORAGE_LOCAL_ROOTDIR
|
||||
value: "/charts"
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 8080
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: charts
|
||||
mountPath: /charts
|
||||
volumes:
|
||||
- name: charts
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/chartmuseum/charts
|
||||
type: Directory
|
||||
nodeSelector:
|
||||
kubernetes.io/os: linux
|
||||
5
apps/chartmuseum/base/kustomization.yaml
Normal file
5
apps/chartmuseum/base/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
20
apps/chartmuseum/base/service.yaml
Normal file
20
apps/chartmuseum/base/service.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: chartmuseum
|
||||
namespace: chartmuseum
|
||||
annotations:
|
||||
metallb.universe.tf/address-pool: k3s-cluster-ip-pool
|
||||
metallb.universe.tf/allow-shared-ip: k3s-cluster
|
||||
labels:
|
||||
app.kubernetes.io/name: chartmuseum
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: chartmuseum
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
name: http
|
||||
12
apps/chartmuseum/env/k3s-cluster/config.json
vendored
Normal file
12
apps/chartmuseum/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"appName": "chartmuseum",
|
||||
"userGivenName": "chartmuseum",
|
||||
"namespace": "chartmuseum",
|
||||
"destNamespace": "chartmuseum",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "apps/chartmuseum/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
21
apps/chartmuseum/env/k3s-cluster/ingress.yaml
vendored
Normal file
21
apps/chartmuseum/env/k3s-cluster/ingress.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: chartmuseum-ingress
|
||||
namespace: chartmuseum
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "chartmuseum.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: chartmuseum
|
||||
port:
|
||||
number: 8080
|
||||
4
apps/chartmuseum/env/k3s-cluster/kustomization.yaml
vendored
Normal file
4
apps/chartmuseum/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../base
|
||||
9
resources/namespaces/env/k3s-cluster/templates/chartmuseum.yaml
vendored
Normal file
9
resources/namespaces/env/k3s-cluster/templates/chartmuseum.yaml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: chartmuseum
|
||||
spec: {}
|
||||
status: {}
|
||||
Reference in New Issue
Block a user