Add cert-manager issuer configuration and update dependencies
This commit is contained in:
parent
bb4c99d9b7
commit
86f5523abb
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
tmp/build-errors.log
|
25
base/issuer.k
Normal file
25
base/issuer.k
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import cert_manager.v1
|
||||||
|
|
||||||
|
issuer = v1.Issuer {
|
||||||
|
apiVersion = "cert-manager.io/v1"
|
||||||
|
kind = "Issuer"
|
||||||
|
metadata = {
|
||||||
|
name = "letsencrypt"
|
||||||
|
}
|
||||||
|
spec = {
|
||||||
|
acme = {
|
||||||
|
email = "suyiiyii@gmail.com"
|
||||||
|
server = "https://acme-v02.api.letsencrypt.org/directory"
|
||||||
|
privateKeySecretRef = {
|
||||||
|
name = "letsencrypt"
|
||||||
|
}
|
||||||
|
solvers = [{
|
||||||
|
http01 = {
|
||||||
|
ingress = {
|
||||||
|
class = "traefik"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
kcl.mod
1
kcl.mod
@ -5,3 +5,4 @@ version = "0.0.1"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
k8s = "1.31.2"
|
k8s = "1.31.2"
|
||||||
|
cert-manager = "0.3.0"
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
|
[dependencies.cert-manager]
|
||||||
|
name = "cert-manager"
|
||||||
|
full_name = "cert-manager_0.3.0"
|
||||||
|
version = "0.3.0"
|
||||||
|
sum = "yyuUXsyOsHOGUK3e9P6GzM5A0hcSpW1XBd5O6TLhyvE="
|
||||||
|
reg = "ghcr.io"
|
||||||
|
repo = "kcl-lang/cert-manager"
|
||||||
|
oci_tag = "0.3.0"
|
||||||
[dependencies.k8s]
|
[dependencies.k8s]
|
||||||
name = "k8s"
|
name = "k8s"
|
||||||
full_name = "k8s_1.31.2"
|
full_name = "k8s_1.31.2"
|
||||||
|
2
main.k
2
main.k
@ -37,4 +37,4 @@ ingresses = [base.httpServiceRender(http)]
|
|||||||
|
|
||||||
env_manifests = [base.envSecretRender(a) for a in base.Envs.instances()]
|
env_manifests = [base.envSecretRender(a) for a in base.Envs.instances()]
|
||||||
# base.appRender(a)
|
# base.appRender(a)
|
||||||
manifests.yaml_stream([apps_manifests, env_manifests, ingresses])
|
manifests.yaml_stream([apps_manifests, env_manifests, ingresses,base.issuer])
|
||||||
|
@ -1 +0,0 @@
|
|||||||
exit status 1exit status 2exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1
|
|
Loading…
x
Reference in New Issue
Block a user