Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arcbox 3.0 - add nodes to devops k3s #2657

Merged
merged 14 commits into from
Aug 12, 2024
5 changes: 3 additions & 2 deletions azure_jumpstart_arcbox/artifacts/DevOpsLogonScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ $kubeVipDaemonset | kubectl apply -f -
Write-Host "`n"
}

# Switch Kubernetes context to ArcBox-DataSvc-K3s cluster
foreach ($cluster in $clusters) {
if ($cluster.context -like '*-datasvc-k3s') {
$Env:KUBECONFIG=$cluster.kubeConfig
Expand Down Expand Up @@ -361,7 +362,7 @@ foreach ($configName in $configs) {
}
}
elseif ($configStatus.ComplianceState -eq "Non-compliant" -and $retryCount -eq $maxRetries) {
Write-Host "GitOps configuration $configName has failed on $Env:k3sArcDataClusterName. Exiting..."
Write-Host "GitOps configuration $configName has failed on $Env:k3sArcDataClusterName. Exiting..." -ForegroundColor Red
break
}
}
Expand Down Expand Up @@ -397,7 +398,7 @@ foreach ($configName in $configs) {
# --release-namespace kube-system `
# --configuration-settings 'secrets-store-csi-driver.enableSecretRotation=true' 'secrets-store-csi-driver.syncSecret.enabled=true'

# # Replace Variable values
# Replace Variable values
Get-ChildItem -Path $Env:ArcBoxKVDir |
ForEach-Object {
# (Get-Content -path $_.FullName -Raw) -Replace '\{JS_CERTNAME}', $certname | Set-Content -Path $_.FullName
Expand Down
15 changes: 0 additions & 15 deletions azure_jumpstart_arcbox/artifacts/devops_ingress/bookbuyer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,3 @@ spec:
port:
number: 14001
path: /bookbuyer
---
kind: IngressBackend
apiVersion: policy.openservicemesh.io/v1alpha1
metadata:
name: backend
spec:
backends:
- name: bookbuyer
port:
number: 14001
protocol: http
sources:
- kind: Service
namespace: ingress-nginx
name: ingress-nginx-controller
19 changes: 0 additions & 19 deletions azure_jumpstart_arcbox/artifacts/devops_ingress/bookstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,3 @@ spec:
port:
number: 14001
path: /bookstore-v2
---
kind: IngressBackend # Ingress Backend for Bookstore App
apiVersion: policy.openservicemesh.io/v1alpha1
metadata:
name: backend
spec:
backends:
- name: bookstore
port:
number: 14001
protocol: http
- name: bookstore-v2
port:
number: 14001
protocol: http
sources:
- kind: Service
namespace: ingress-nginx
name: ingress-nginx-controller
2 changes: 1 addition & 1 deletion azure_jumpstart_arcbox/bicep/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module ubuntuRancherK3sDataSvcDeployment 'kubernetes/ubuntuRancher.bicep' = if (
}
}

module ubuntuRancherK3sDataSvcNodesDeployment 'kubernetes/ubuntuRancherNodes.bicep' = [for i in range(0, k3sClusterNodesCount): if (flavor == 'Full' || flavor == 'DataOps') {
module ubuntuRancherK3sDataSvcNodesDeployment 'kubernetes/ubuntuRancherNodes.bicep' = [for i in range(0, k3sClusterNodesCount): if (flavor == 'Full' || flavor == 'DataOps' || flavor == 'DevOps') {
name: 'ubuntuRancherK3sDataSvcNodesDeployment-${i}'
params: {
sshRSAPublicKey: sshRSAPublicKey
Expand Down
Loading