diff --git a/Production-Ready-project/manifests/armtemplate/demo.bicep b/Production-Ready-project/manifests/armtemplate/demo.bicep deleted file mode 100644 index 563d0bd..0000000 --- a/Production-Ready-project/manifests/armtemplate/demo.bicep +++ /dev/null @@ -1,60 +0,0 @@ -@description('The name of the Managed Cluster resource.') -param clusterName string = 'demo' - -@description('The location of the Managed Cluster resource.') -param location string = resourceGroup().location - -@description('Optional DNS prefix to use with hosted Kubernetes API server FQDN.') -param dnsPrefix string - -@description('Disk size (in GB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize.') -@minValue(0) -@maxValue(1023) -param osDiskSizeGB int = 0 - -@description('The number of nodes for the cluster.') -@minValue(1) -@maxValue(50) -param agentCount int = 2 - -@description('The size of the Virtual Machine.') -param agentVMSize string = 'standard_d2s_v3' - -@description('User name for the Linux Virtual Machines.') -param linuxAdminUsername string - -@description('Configure all linux machines with the SSH RSA public key string. Your key should include three parts, for example \'ssh-rsa AAAAB...snip...UcyupgH azureuser@linuxvm\'') -param sshRSAPublicKey string - -resource aks 'Microsoft.ContainerService/managedClusters@2024-02-01' = { - name: clusterName - location: location - identity: { - type: 'SystemAssigned' - } - properties: { - dnsPrefix: dnsPrefix - agentPoolProfiles: [ - { - name: 'agentpool' - osDiskSizeGB: osDiskSizeGB - count: agentCount - vmSize: agentVMSize - osType: 'Linux' - mode: 'System' - } - ] - linuxProfile: { - adminUsername: linuxAdminUsername - ssh: { - publicKeys: [ - { - keyData: sshRSAPublicKey - } - ] - } - } - } -} - -output controlPlaneFQDN string = aks.properties.fqdn diff --git a/Production-Ready-project/manifests/gateway.yaml b/Production-Ready-project/manifests/gateway.yaml index 7b4cf21..a149412 100644 --- a/Production-Ready-project/manifests/gateway.yaml +++ b/Production-Ready-project/manifests/gateway.yaml @@ -22,7 +22,24 @@ spec: tls: mode: Terminate certificateRefs: - - name: demo-com-tls + - name: app-tls + kind: Secret + group: "" + - name: argo-http + port: 80 + protocol: HTTP + hostname: "argo.anishbista.xyz" + - name: argo-https + hostname: "argo.anishbista.xyz" + port: 443 + protocol: HTTPS + allowedRoutes: + namespaces: + from: All + tls: + mode: Terminate + certificateRefs: + - name: argo-tls kind: Secret group: "" diff --git a/Production-Ready-project/manifests/route.yaml b/Production-Ready-project/manifests/route.yaml index a6bfa5e..a22b5c3 100644 --- a/Production-Ready-project/manifests/route.yaml +++ b/Production-Ready-project/manifests/route.yaml @@ -7,7 +7,7 @@ spec: - name: app-gateway namespace: default hostnames: - - "demo.anishbista.xyz" + - "app.anishbista.xyz" rules: - matches: - path: @@ -16,4 +16,26 @@ spec: backendRefs: - name: my-app-service port: 80 +--- +apiVersion: gateway.networking.k8s.io/v1beta1 +kind: HTTPRoute +metadata: + name: argo-route + namespace: default +spec: + parentRefs: + - name: app-gateway + namespace: default + hostnames: + - "argo.anishbista.xyz" + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - name: argocd-server + namespace: argocd + port: 80 + kind: Service diff --git a/Production-Ready-project/manifests/servicemonitor.yaml b/Production-Ready-project/servicemonitor.yaml similarity index 100% rename from Production-Ready-project/manifests/servicemonitor.yaml rename to Production-Ready-project/servicemonitor.yaml