Adding variable structure for the new game_server config
This commit is contained in:
		
							parent
							
								
									abf3297498
								
							
						
					
					
						commit
						bf812cce4c
					
				| @ -34,6 +34,18 @@ variable cluster { | |||||||
|   }) |   }) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| variable lab_domain { | variable game_servers { | ||||||
|   type = string |   type = object({ | ||||||
|  |     namespace = string | ||||||
|  |     configs = map(object({ | ||||||
|  |         name  = optional(string) | ||||||
|  |         image = string | ||||||
|  |         cpu   = string | ||||||
|  |         mem   = string | ||||||
|  |         port  = number | ||||||
|  |         proto = optional(string) | ||||||
|  |       }) | ||||||
|  |     ) | ||||||
|  |   }) | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | |||||||
| @ -1,4 +1,3 @@ | |||||||
| 
 |  | ||||||
| cluster = { | cluster = { | ||||||
|   region = "lax" |   region = "lax" | ||||||
|   label   = "athens-cluster" |   label   = "athens-cluster" | ||||||
| @ -11,4 +10,14 @@ cluster = { | |||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| lab_domain = "temprah-lab.xyz" | game_servers = { | ||||||
|  |   namespace = "games" | ||||||
|  |   configs = { | ||||||
|  |     nginx = { | ||||||
|  |       image = "nginx:latest" | ||||||
|  |       cpu   = "200m" | ||||||
|  |       mem   = "64Mi" | ||||||
|  |       port  = 30808 | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user