chore(osx): Added OSX container
This commit is contained in:
@@ -18,3 +18,4 @@ resources:
|
|||||||
- immich
|
- immich
|
||||||
- digital-garden
|
- digital-garden
|
||||||
- nextcloud
|
- nextcloud
|
||||||
|
- osx
|
||||||
|
|||||||
17
clusters/artemis/apps/osx/app-project.yaml
Normal file
17
clusters/artemis/apps/osx/app-project.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
name: osx
|
||||||
|
spec:
|
||||||
|
description: osx container to proxy shortcuts
|
||||||
|
sourceRepos:
|
||||||
|
- '*'
|
||||||
|
sourceNamespaces:
|
||||||
|
- '*'
|
||||||
|
destinations:
|
||||||
|
- namespace: 'osx'
|
||||||
|
server: '*'
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: '*'
|
||||||
|
kind: '*'
|
||||||
24
clusters/artemis/apps/osx/application.yaml
Normal file
24
clusters/artemis/apps/osx/application.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: osx
|
||||||
|
namespace: osx
|
||||||
|
labels:
|
||||||
|
platform.dgse.cloud/cluster: artemis
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: osx
|
||||||
|
source:
|
||||||
|
repoURL: 'https://git.dgse.cloud/DGSE/kubernetes.git'
|
||||||
|
path: manifests/artemis/osx
|
||||||
|
targetRevision: main
|
||||||
|
destination:
|
||||||
|
namespace: osx
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
7
clusters/artemis/apps/osx/kustomization.yaml
Normal file
7
clusters/artemis/apps/osx/kustomization.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- app-project.yaml
|
||||||
|
- application.yaml
|
||||||
56
manifests/artemis/osx/deployment.yaml
Normal file
56
manifests/artemis/osx/deployment.yaml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: macos
|
||||||
|
labels:
|
||||||
|
name: macos
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: macos
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: macos
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: macos
|
||||||
|
image: dockurr/macos
|
||||||
|
env:
|
||||||
|
- name: VERSION
|
||||||
|
value: "14"
|
||||||
|
- name: DISK_SIZE
|
||||||
|
value: "64G"
|
||||||
|
ports:
|
||||||
|
- containerPort: 8006
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 5900
|
||||||
|
name: vnc
|
||||||
|
protocol: TCP
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /storage
|
||||||
|
name: storage
|
||||||
|
- mountPath: /dev/kvm
|
||||||
|
name: dev-kvm
|
||||||
|
- mountPath: /dev/net/tun
|
||||||
|
name: dev-tun
|
||||||
|
terminationGracePeriodSeconds: 120
|
||||||
|
volumes:
|
||||||
|
- name: storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: macos-pvc
|
||||||
|
- hostPath:
|
||||||
|
path: /dev/kvm
|
||||||
|
name: dev-kvm
|
||||||
|
- hostPath:
|
||||||
|
path: /dev/net/tun
|
||||||
|
type: CharDevice
|
||||||
|
name: dev-tun
|
||||||
22
manifests/artemis/osx/ingress.yaml
Normal file
22
manifests/artemis/osx/ingress.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
name: osx-ingress
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: osx.dgse.cloud
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: macos
|
||||||
|
port:
|
||||||
|
number: 8006
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- osx.dgse.cloud
|
||||||
|
secretName: letsencrypt
|
||||||
8
manifests/artemis/osx/kustomization.yaml
Normal file
8
manifests/artemis/osx/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- service.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- pvc.yaml
|
||||||
11
manifests/artemis/osx/pvc.yaml
Normal file
11
manifests/artemis/osx/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: macos-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 64Gi
|
||||||
19
manifests/artemis/osx/service.yaml
Normal file
19
manifests/artemis/osx/service.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: macos
|
||||||
|
spec:
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 8006
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8006
|
||||||
|
- name: vnc
|
||||||
|
port: 5900
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 5900
|
||||||
|
selector:
|
||||||
|
app: macos
|
||||||
|
type: ClusterIP
|
||||||
Reference in New Issue
Block a user