fix
This commit is contained in:
@@ -15,6 +15,9 @@ resource "kubectl_manifest" "deploy" {
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels: ${jsonencode(local.common-labels)}
|
labels: ${jsonencode(local.common-labels)}
|
||||||
|
annotations:
|
||||||
|
container.apparmor.security.beta.kubernetes.io/img: unconfined
|
||||||
|
container.seccomp.security.alpha.kubernetes.io/img: unconfined
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
@@ -33,7 +36,10 @@ resource "kubectl_manifest" "deploy" {
|
|||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
privileged: true
|
privileged: true
|
||||||
|
procMount: unmasked
|
||||||
env:
|
env:
|
||||||
|
- name: USER
|
||||||
|
value: coder
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "${var.timezone}"
|
value: "${var.timezone}"
|
||||||
- name: ENTRYPOINTD
|
- name: ENTRYPOINTD
|
||||||
@@ -75,6 +81,8 @@ resource "kubectl_manifest" "deploy" {
|
|||||||
subPath: autostart.sh
|
subPath: autostart.sh
|
||||||
- name: home
|
- name: home
|
||||||
mountPath: /home/coder
|
mountPath: /home/coder
|
||||||
|
- name: podman-overlay
|
||||||
|
mountPath: /home/coder/.local/share/containers/storage/overlay/
|
||||||
- name: run
|
- name: run
|
||||||
mountPath: /run
|
mountPath: /run
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
@@ -105,5 +113,7 @@ resource "kubectl_manifest" "deploy" {
|
|||||||
claimName: "${var.component}-${var.instance}"
|
claimName: "${var.component}-${var.instance}"
|
||||||
- name: run
|
- name: run
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
- name: podman-overlay
|
||||||
|
emptyDir: {}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,16 +6,6 @@ metadata:
|
|||||||
name: code-server
|
name: code-server
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
sub-domain:
|
|
||||||
default: code
|
|
||||||
examples:
|
|
||||||
- code
|
|
||||||
type: string
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
admin:
|
admin:
|
||||||
default:
|
default:
|
||||||
cluster: false
|
cluster: false
|
||||||
@@ -31,59 +21,10 @@ options:
|
|||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
ingress-class:
|
domain-name:
|
||||||
default: traefik
|
default: your_company.com
|
||||||
examples:
|
examples:
|
||||||
- traefik
|
- your_company.com
|
||||||
type: string
|
|
||||||
images:
|
|
||||||
default:
|
|
||||||
codeserver:
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
registry: docker.io
|
|
||||||
repository: sebt3/code-server
|
|
||||||
tag: 4.13
|
|
||||||
examples:
|
|
||||||
- codeserver:
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
registry: docker.io
|
|
||||||
repository: sebt3/code-server
|
|
||||||
tag: 4.13
|
|
||||||
properties:
|
|
||||||
codeserver:
|
|
||||||
default:
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
registry: docker.io
|
|
||||||
repository: sebt3/code-server
|
|
||||||
tag: 4.13
|
|
||||||
properties:
|
|
||||||
pullPolicy:
|
|
||||||
default: IfNotPresent
|
|
||||||
enum:
|
|
||||||
- Always
|
|
||||||
- Never
|
|
||||||
- IfNotPresent
|
|
||||||
type: string
|
|
||||||
registry:
|
|
||||||
default: docker.io
|
|
||||||
type: string
|
|
||||||
repository:
|
|
||||||
default: sebt3/code-server
|
|
||||||
type: string
|
|
||||||
tag:
|
|
||||||
default: 4.13
|
|
||||||
type: number
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
timezone:
|
|
||||||
default: Europe/Paris
|
|
||||||
examples:
|
|
||||||
- Europe/Paris
|
|
||||||
type: string
|
type: string
|
||||||
storage:
|
storage:
|
||||||
default:
|
default:
|
||||||
@@ -112,10 +53,69 @@ options:
|
|||||||
- block
|
- block
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
domain-name:
|
images:
|
||||||
default: your_company.com
|
default:
|
||||||
|
codeserver:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: sebt3/code-server
|
||||||
|
tag: 4.14
|
||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- codeserver:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: sebt3/code-server
|
||||||
|
tag: 4.14
|
||||||
|
properties:
|
||||||
|
codeserver:
|
||||||
|
default:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: sebt3/code-server
|
||||||
|
tag: 4.14
|
||||||
|
properties:
|
||||||
|
pullPolicy:
|
||||||
|
default: IfNotPresent
|
||||||
|
enum:
|
||||||
|
- Always
|
||||||
|
- Never
|
||||||
|
- IfNotPresent
|
||||||
|
type: string
|
||||||
|
registry:
|
||||||
|
default: docker.io
|
||||||
|
type: string
|
||||||
|
repository:
|
||||||
|
default: sebt3/code-server
|
||||||
|
type: string
|
||||||
|
tag:
|
||||||
|
default: 4.14
|
||||||
|
type: number
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
|
sub-domain:
|
||||||
|
default: code
|
||||||
|
examples:
|
||||||
|
- code
|
||||||
|
type: string
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
|
timezone:
|
||||||
|
default: Europe/Paris
|
||||||
|
examples:
|
||||||
|
- Europe/Paris
|
||||||
type: string
|
type: string
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
@@ -128,3 +128,4 @@ providers:
|
|||||||
postgresql: null
|
postgresql: null
|
||||||
restapi: true
|
restapi: true
|
||||||
http: true
|
http: true
|
||||||
|
tfaddtype: null
|
||||||
|
|||||||
Reference in New Issue
Block a user