2020-08-11 20:43:56 +02:00
|
|
|
resource argocd_serverDeployment "kubernetes:apps/v1:Deployment" {
|
|
|
|
apiVersion = "apps/v1"
|
|
|
|
kind = "Deployment"
|
|
|
|
metadata = {
|
|
|
|
name = "argocd-server"
|
|
|
|
}
|
|
|
|
spec = {
|
2021-06-24 18:17:55 +02:00
|
|
|
selector = {
|
|
|
|
matchLabels = {
|
|
|
|
app = "server"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
replicas = 1
|
2020-08-11 20:43:56 +02:00
|
|
|
template = {
|
2021-06-24 18:17:55 +02:00
|
|
|
metadata = {
|
|
|
|
labels = {
|
|
|
|
app = "server"
|
|
|
|
}
|
|
|
|
}
|
2020-08-11 20:43:56 +02:00
|
|
|
spec = {
|
|
|
|
containers = [
|
|
|
|
{
|
2021-06-24 18:17:55 +02:00
|
|
|
name = "nginx"
|
|
|
|
image = "nginx"
|
2020-08-11 20:43:56 +02:00
|
|
|
readinessProbe = {
|
|
|
|
httpGet = {
|
|
|
|
port = 8080
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-24 18:17:55 +02:00
|
|
|
}
|