Compare commits
No commits in common. "4ebe0bde0602073841a14c7a8224cbed961a842b" and "6acdf29d1ac25af9490103fe2ef6fcece579ec27" have entirely different histories.
4ebe0bde06
...
6acdf29d1a
14
Makefile
14
Makefile
@ -47,19 +47,7 @@ ci:
|
|||||||
|
|
||||||
.PHONY: release # Release the latest version of the application
|
.PHONY: release # Release the latest version of the application
|
||||||
release:
|
release:
|
||||||
@cd terraform && terraform apply -auto-approve && \
|
@cd terraform && terraform apply -auto-approve
|
||||||
kubectx admin@clusterfun-scaleway && \
|
|
||||||
cd ../tekton && \
|
|
||||||
kubectl apply -f ./1-Install/ && \
|
|
||||||
kubectl apply -f ./2-Setup/ && \
|
|
||||||
kubectl apply -f ./bindings/ && \
|
|
||||||
kubectl apply -f ./conditions/ && \
|
|
||||||
kubectl apply -f ./eventlisteners/ && \
|
|
||||||
kubectl apply -f ./pipelines/ && \
|
|
||||||
kubectl apply -f ./tasks/ && \
|
|
||||||
kubectl apply -f ./triggertemplates/ && \
|
|
||||||
cd ../manifests && \
|
|
||||||
kubectl apply -f ./
|
|
||||||
|
|
||||||
.PHONY: help # Show this list of commands
|
.PHONY: help # Show this list of commands
|
||||||
help:
|
help:
|
||||||
|
@ -23,9 +23,9 @@ metadata:
|
|||||||
namespace: nextcloud
|
namespace: nextcloud
|
||||||
spec:
|
spec:
|
||||||
chart:
|
chart:
|
||||||
repository: https://nextcloud.github.io/helm/
|
repository: https://kubernetes-charts.storage.googleapis.com
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
version: 2.5.5
|
version: 1.12.0
|
||||||
maxHistory: 5
|
maxHistory: 5
|
||||||
valuesFrom:
|
valuesFrom:
|
||||||
- secretKeyRef:
|
- secretKeyRef:
|
||||||
@ -35,8 +35,7 @@ spec:
|
|||||||
optional: false
|
optional: false
|
||||||
values:
|
values:
|
||||||
image:
|
image:
|
||||||
tag: 19.0.8-apache
|
tag: 19-apache
|
||||||
pullPolicy: Always
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -10,6 +10,12 @@ resource "scaleway_k8s_cluster_beta" "k8s-cluster" {
|
|||||||
"HPAScaleToZero",
|
"HPAScaleToZero",
|
||||||
"TTLAfterFinished"
|
"TTLAfterFinished"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
auto_upgrade {
|
||||||
|
enable = true
|
||||||
|
maintenance_window_start_hour = 2
|
||||||
|
maintenance_window_day = "any"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
22
terraform/kubernetes-manifests.tf
Normal file
22
terraform/kubernetes-manifests.tf
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
resource "kubectl_manifest" "manifests" {
|
||||||
|
for_each = fileset(path.module, "../manifests/*")
|
||||||
|
yaml_body = file(each.key)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
resource "kubectl_manifest" "tekton-install" {
|
||||||
|
for_each = fileset(path.module, "../tekton/1-Install/*")
|
||||||
|
yaml_body = file(each.key)
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "kubectl_manifest" "tekton-setup" {
|
||||||
|
for_each = fileset(path.module, "../tekton/2-Setup/*")
|
||||||
|
yaml_body = file(each.key)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
resource "kubectl_manifest" "tekton" {
|
||||||
|
for_each = fileset(path.module, "../tekton/{bindings,conditions,eventlisteners,pipelines,tasks,triggertemplates}/*")
|
||||||
|
yaml_body = file(each.key)
|
||||||
|
}
|
||||||
|
|
@ -14,3 +14,12 @@ provider "helm" {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
provider "kubectl" {
|
||||||
|
load_config_file = false
|
||||||
|
host = scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].host
|
||||||
|
token = scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].token
|
||||||
|
cluster_ca_certificate = base64decode(
|
||||||
|
scaleway_k8s_cluster_beta.k8s-cluster.kubeconfig[0].cluster_ca_certificate
|
||||||
|
)
|
||||||
|
}
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
terraform {
|
terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
helm = {
|
helm = {
|
||||||
source = "hashicorp/helm"
|
source = "hashicorp/helm"
|
||||||
version = "1.3.2"
|
version = "1.3.2"
|
||||||
}
|
}
|
||||||
|
kubectl = {
|
||||||
|
source = "gavinbunney/kubectl"
|
||||||
|
version = ">= 1.7.0"
|
||||||
|
}
|
||||||
scaleway = {
|
scaleway = {
|
||||||
source = "scaleway/scaleway"
|
source = "scaleway/scaleway"
|
||||||
version = "1.17.2"
|
version = "1.17.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user