Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions bicep/modules/blade_configuration.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,8 @@ values.yaml: |
appOid: {7}
resourceGroup: {8}
storageAccountName: {11}
subscription: {12}
aksName: {13}
dnsName: {14}
region: {12}
dnsName: {13}
ingress:
internalGateway:
enabled: {9}
Expand Down Expand Up @@ -459,8 +458,7 @@ module appConfigMap './aks-config-map/main.bicep' = {
clusterIngress == 'Internal' || clusterIngress == 'Both' ? 'true' : 'false',
clusterIngress == 'External' || clusterIngress == 'Both' ? 'true' : 'false',
storageAccountName,
subscription().subscriptionId,
clusterName,
location,
dnsName)
]
}
Expand Down
21 changes: 0 additions & 21 deletions charts/dns-configuration/templates/clusterrole.yaml

This file was deleted.

144 changes: 0 additions & 144 deletions charts/dns-configuration/templates/configmap.yaml

This file was deleted.

73 changes: 0 additions & 73 deletions charts/dns-configuration/templates/job.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions charts/dns-configuration/templates/role-configmap.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions charts/dns-configuration/values.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: dns-configuration
name: istio-certs
description: A Helm chart for configuring DNS labels on AKS LoadBalancer IPs

# A chart can be either an 'application' or a 'library' chart.
Expand Down
45 changes: 14 additions & 31 deletions charts/dns-configuration/README.md → charts/istio-certs/README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,33 @@
# DNS Configuration Helm Chart
# Istio Certs Helm Chart

This chart configures DNS labels for Azure Kubernetes Service (AKS) LoadBalancer IPs, enabling automatic FQDN assignment for OSDU services.

--------------------------------------------------------------------------------

## Prerequisites

- Azure Kubernetes Service (AKS) cluster with workload identity enabled
- Azure Kubernetes Service (AKS) cluster
- Istio service mesh deployed
- Azure CLI and kubectl access configured
- kubectl access configured

--------------------------------------------------------------------------------
## Install Process

Either manually modify the `values.yaml` for the chart or generate a `custom_values.yaml` to use.

_The following commands can help generate a prepopulated custom values file._

```bash
# Setup Variables
GROUP=<your_resource_group>
## Install Process

SUBSCRIPTION=$(az account show --query id -otsv)
AKS_NAME=$(az aks list --resource-group $GROUP --query "[0].name" -otsv)
Modify the `values.yaml` for the chart or create a `custom_values.yaml` with the following required values:

cat > custom_values.yaml << EOF
################################################################################
# Azure environment specific values
#
```yaml
azure:
tenantId: $(az account show --query tenantId -otsv)
clientId: $(az identity list --resource-group $GROUP --query "[?contains(name, 'osdu-identity')].clientId" -otsv)
configEndpoint: $(az appconfig list --resource-group $GROUP --query "[0].endpoint" -otsv)
keyvaultName: $(az keyvault list --resource-group $GROUP --query "[0].name" -otsv)
keyvaultUri: $(az keyvault list --resource-group $GROUP --query "[0].properties.vaultUri" -otsv)
subscription: $SUBSCRIPTION
resourceGroup: $GROUP
aksName: $AKS_NAME
EOF
region: <your_azure_region> # Azure region, e.g. eastus
dnsName: <your_dns_label> # Unique DNS label for the cluster
istioServiceName: istio-ingressgateway # Name of the Istio service
istioNamespace: istio-system # Namespace of the Istio service
maxRetries: 30 # Max retries for waiting on LoadBalancer IP
retryInterval: 10 # Seconds between retries
```

--------------------------------------------------------------------------------

## Manual Testing

Test the chart locally:
Expand Down Expand Up @@ -91,11 +79,6 @@ kubectl delete configmap dns-config -n $NAMESPACE
|--------------------------|------------------------------------------|------------------------|
| `serviceAccount.create` | Create a new service account | `false` |
| `serviceAccount.name` | Service account name to use | `workload-identity-sa` |
| `azure.tenantId` | Azure tenant ID | `<your_tenant_id>` |
| `azure.clientId` | Azure client ID for workload identity | `<your_client_id>` |
| `azure.subscription` | Azure subscription ID | `<your_subscription_id>` |
| `azure.resourceGroup` | Resource group containing the AKS cluster| `<your_resource_group>` |
| `azure.aksName` | AKS cluster name | `<your_aks_cluster_name>` |
| `azure.uniqueId` | Unique ID for the cluster | `""` |

--------------------------------------------------------------------------------
Expand Down
Loading