Skip to content

Instantly share code, notes, and snippets.

View sayadi's full-sized avatar

Mohamed Al Sayadi sayadi

View GitHub Profile
prop2=Production-specific value for prop2.
prop3=Production-specific value for prop3.
@RestController
@RequestMapping("/properties")
public class PropertyController {
private final Environment environment;
@Autowired
public PropertyController(
Environment environment) {
@sayadi
sayadi / edit-coredns.tf
Created July 21, 2021 09:34
Running the EKS CoreDNS deployment on Fargate when using the Terraform EKS module
# By default, the AWS EKS API creates the coredns deployment template with an annotation
# `eks.amazonaws.com/compute-type` equal to `ec2`. This prevents coredns pods from running on Fargate.
# Removing this annotation fixes the issue.
# More on: https://github.com/hashicorp/terraform-provider-aws/issues/11327
resource "null_resource" "edit_coredns" {
provisioner "local-exec" {
environment = {
KUBECONFIG = module.eks.kubeconfig_filename
CLUSTER_NAME = local.cluster_name
}