Hybrid Multi Cloud Task-6,to deploy the wordpress application using kubernetes and AWS

resource "kubernetes_deployment" "Wordpress-deploy" {
metadata{
name= "wordpress"
labels ={
app = "wordpress"
env = "task-env"
}
}
spec {
replicas = 1
selector {
match_labels = {
app = "wordpress"
env = "task-env"
}
}

template {
metadata {
labels = {
app = "wordpress"
env = "task-env"
}
}
spec {
container{
name = "mywordpress"
image = "wordpress"

env{
name = "WORDPRESS_DB_HOST"
value = aws_db_instance.myrdsdb.address
}
env{
name = "WORDPRESS_DB_USER"
value = aws_db_instance.myrdsdb.username
}
env{
name = "WORDPRESS_DB_PASSWORD"
value = aws_db_instance.myrdsdb.password
}
env{
name = "WORDPRESS_DB_NAME"
value = aws_db_instance.myrdsdb.name
}
}
}
}
}
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store