diff --git a/guacamole/guacamole-svc.yaml b/guacamole/guacamole-svc.yaml new file mode 100644 index 0000000..587691f --- /dev/null +++ b/guacamole/guacamole-svc.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: guacamole +spec: + ipFamilyPolicy: PreferDualStack + ipFamilies: + - IPv4 + - IPv6 + ports: + - port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app: guacamole \ No newline at end of file diff --git a/guacamole/guacamole.yaml b/guacamole/guacamole.yaml new file mode 100644 index 0000000..820607b --- /dev/null +++ b/guacamole/guacamole.yaml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: guacamole +spec: + selector: + matchLabels: + app: guacamole + template: + metadata: + labels: + app: guacamole + spec: + containers: + - name: guacamole + image: guacamole/guacamole + resources: + limits: + cpu: '1' + memory: '1024Mi' + env: + - name: GUACD_HOSTNAME + value: guacd + - name: GUACD_PORT + value: '4822' + - name: POSTGRES_HOSTNAME + value: postgresql.default + - name: POSTGRES_DATABASE + value: guacamole + - name: POSTGRES_USER + value: guacamole + - name: POSTGRES_PASSWORD + value: guacamole \ No newline at end of file diff --git a/guacamole/guacd-svc.yaml b/guacamole/guacd-svc.yaml new file mode 100644 index 0000000..e7be37b --- /dev/null +++ b/guacamole/guacd-svc.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: guacd +spec: + ipFamilyPolicy: PreferDualStack + ipFamilies: + - IPv4 + - IPv6 + ports: + - port: 4822 + protocol: TCP + targetPort: guacd + selector: + app: guacd \ No newline at end of file diff --git a/guacamole/guacd.yaml b/guacamole/guacd.yaml new file mode 100644 index 0000000..7f0446a --- /dev/null +++ b/guacamole/guacd.yaml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: guacd +spec: + selector: + matchLabels: + app: guacd + template: + metadata: + labels: + app: guacd + spec: + containers: + - name: guacd + image: guacamole/guacd + resources: + limits: + cpu: 200m + memory: '512Mi' + ports: + - protocol: TCP + name: guacd + containerPort: 4822 \ No newline at end of file diff --git a/guacamole/kustomization.yaml b/guacamole/kustomization.yaml new file mode 100644 index 0000000..518e9e2 --- /dev/null +++ b/guacamole/kustomization.yaml @@ -0,0 +1,13 @@ +# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json + +resources: + - guacd.yaml + - guacd-svc.yaml + - guacamole.yaml + - guacamole-svc.yaml +images: + - name: guacamole/guacamole + newTag: 1.4.0 + - name: guacamole/guacd + newTag: 1.4.0 +namespace: vintage-os \ No newline at end of file