| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 1 | input: { |
| 2 | subdomain: string |
| Giorgi Lekveishvili | 9d5e3f5 | 2024-03-13 15:02:50 +0400 | [diff] [blame] | 3 | ipSubnet: string |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 4 | } |
| 5 | |
| Giorgi Lekveishvili | 03d6f4b | 2024-03-08 13:05:21 +0400 | [diff] [blame] | 6 | name: "headscale" |
| Giorgi Lekveishvili | 08af67a | 2024-01-18 08:53:05 +0400 | [diff] [blame] | 7 | namespace: "app-headscale" |
| 8 | |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 9 | images: { |
| 10 | headscale: { |
| 11 | repository: "headscale" |
| 12 | name: "headscale" |
| 13 | tag: "0.22.3" |
| 14 | pullPolicy: "IfNotPresent" |
| 15 | } |
| 16 | api: { |
| 17 | repository: "giolekva" |
| 18 | name: "headscale-api" |
| 19 | tag: "latest" |
| 20 | pullPolicy: "Always" |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | charts: { |
| Giorgi Lekveishvili | 0c6b324 | 2024-03-14 15:31:08 +0400 | [diff] [blame^] | 25 | oauth2Client: { |
| 26 | chart: "charts/oauth2-client" |
| 27 | sourceRef: { |
| 28 | kind: "GitRepository" |
| 29 | name: "pcloud" |
| 30 | namespace: global.id |
| 31 | } |
| 32 | } |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 33 | headscale: { |
| 34 | chart: "charts/headscale" |
| 35 | sourceRef: { |
| 36 | kind: "GitRepository" |
| 37 | name: "pcloud" |
| 38 | namespace: global.id |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| Giorgi Lekveishvili | 0c6b324 | 2024-03-14 15:31:08 +0400 | [diff] [blame^] | 43 | _domain: "\(input.subdomain).\(global.domain)" |
| 44 | _oauth2ClientSecretName: "oauth2-client" |
| 45 | |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 46 | helm: { |
| Giorgi Lekveishvili | 0c6b324 | 2024-03-14 15:31:08 +0400 | [diff] [blame^] | 47 | "oauth2-client": { |
| 48 | chart: charts.oauth2Client |
| 49 | // TODO(gio): remove once hydra maester is installed as part of dodo itself |
| 50 | dependsOnExternal: [{ |
| 51 | name: "auth" |
| 52 | namespace: "\(global.namespacePrefix)core-auth" |
| 53 | }] |
| 54 | values: { |
| 55 | name: "oauth2-client" |
| 56 | secretName: _oauth2ClientSecretName |
| 57 | grantTypes: ["authorization_code"] |
| 58 | responseTypes: ["code"] |
| 59 | scope: "openid profile email" |
| 60 | redirectUris: ["https://\(_domain)/oidc/callback"] |
| 61 | hydraAdmin: "http://hydra-admin.\(global.namespacePrefix)core-auth.svc.cluster.local" |
| 62 | } |
| 63 | } |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 64 | headscale: { |
| 65 | chart: charts.headscale |
| 66 | dependsOnExternal: [{ |
| 67 | name: "auth" |
| 68 | namespace: "\(global.namespacePrefix)core-auth" |
| 69 | }] |
| 70 | values: { |
| 71 | image: { |
| 72 | repository: images.headscale.fullName |
| 73 | tag: images.headscale.tag |
| 74 | pullPolicy: images.headscale.pullPolicy |
| 75 | } |
| 76 | storage: size: "5Gi" |
| 77 | ingressClassName: _ingressPublic |
| 78 | certificateIssuer: _issuerPublic |
| Giorgi Lekveishvili | 0c6b324 | 2024-03-14 15:31:08 +0400 | [diff] [blame^] | 79 | domain: _domain |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 80 | publicBaseDomain: global.domain |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 81 | ipAddressPool: "\(global.id)-headscale" |
| Giorgi Lekveishvili | 0c6b324 | 2024-03-14 15:31:08 +0400 | [diff] [blame^] | 82 | oauth2: { |
| 83 | secretName: _oauth2ClientSecretName |
| 84 | issuer: "https://hydra.\(global.domain)" |
| 85 | } |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 86 | api: { |
| 87 | port: 8585 |
| Giorgi Lekveishvili | 9d5e3f5 | 2024-03-13 15:02:50 +0400 | [diff] [blame] | 88 | ipSubnet: input.ipSubnet |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 89 | image: { |
| 90 | repository: images.api.fullName |
| 91 | tag: images.api.tag |
| 92 | pullPolicy: images.api.pullPolicy |
| 93 | } |
| 94 | } |
| 95 | ui: enabled: false |
| 96 | } |
| 97 | } |
| 98 | } |