Skip to main content

Im creating a AirGAp installation for customer. I have follow the below steps.


1) Download SU17 update from the jfrog repository 

./download.sh -u ifsremote-reader -p "XXX" -j ifscloud.jfrog.io -r 22.2.17 --ifs-helm 
./download.sh -u ifsremote-reader -p "XXX" -j ifscloud.jfrog.io -r 22.2.17 --ifs-docker-infra
./download.sh -u ifsremote-reader -p "XXX" -j ifscloud.jfrog.io -r 22.2.17 --ifs-docker

2) Stop microk8s and start docker from middlewre environment 

3) Start local repository create a new empty repo for SU17 update. 

4) upload helm and docker new update to local repository. 
./upload.sh -a test.local:8043/repository -u admin -p "XXX" -r helm –helm
./upload.sh -a test.local:8046/repository -u admin -p "XXX" -d docker –docker    

5) Stop the docker and start microk8s service. 

6) Download the new artifacts from "https://lifecycle.ifs.com/"

7) Update new values to the main_config file and values.yaml file. 

8) Run the below steps without any issues. 

$env:KUBECONFIG = "C:\IFS\PROD\WMS\ifsroot\config\kube\config"
$env:NAMESPACE = "novprod"
.\main.ps1 -resource 'INIT'
.\main.ps1 -resource 'KEY'
.\main.ps1 -resource 'KUBERNETES'
.\main.ps1 -resource 'GETKUBECONFIG'
   mkdir $HOME\.kube 
   copy .\config\kube\config $HOME\.kube\
.\main.ps1 -resource 'DISABLEAPPARMORPROFILE'
.\main.ps1 -resource "SETK8SDNS"

.\main.ps1 -resource 'INGRESS' -- Failed with below error. 

PS D:\ifsroot> .\main.ps1 -resource 'INGRESS'
Importing-Modules.......

Base                                   : .\utils
Logs                                   : .\logs
LinuxUserName                          : ifs
Linuxhost                              : test
Nodes                                  : {}
ScriptsFName                           : remote-scripts
ScriptsLocal                           : .\
ScriptsLinux                           : /home/ifs
PowershellPath                         : .\bin\powershell
Microk8sBin                            : .\bin\microk8s\
NugetVersion                           : 2.8.5.208
localPowershellAssembliesPath          : C:\Program Files\PackageManagement\ProviderAssemblies
localPSRepositoryName                  : localPSRepository
PoshVersion                            : 2.3.0
PoshYamlVersion                        : 0.4.7
RemoteArtifactUri                      : https://test.it77.local:8043
RemoteArtifactDockerRepo               : test.it77.local:8046
RemoteArtifactDockerRepoPath           : repository/docker
RemoteArtifactRemoteRepo               : remote
RemoteArtifactRemoteRepoVersion        : 1.0.0
RemoteArtifactHelmRepoName             : ifscloud
RemoteArtifactThirdPartyRepo           : thirdparty-libraries
RemoteArtifactHelmRepo                 : repository/helm
RemoteArtifactHelmPriorityClassVersion : 1.0.0
RemoteArtifactHelmMonitoringVersion    : 1.22.13
RemoteArtifactHelmIngressVersion       : 3.2.3
RemoteArtifactHelmAutoscalerVersion    : 1.2.0
RemoteArtifactHelmStorageVersion       : 1.0.1
KubectlVersion                         : v1.26.3
HelmVersion                            : v3.11.3
StepVersion                            : v0.15.3
HtpasswdVersion                        : v2.4
OpenJDKVersion                         : v11.0.2
Dns                                    : 10.17.77.11 10.17.77.12
MaxVMRebootWaitSecs                    : 1200
IFSCloudNamespace                      : booc
FirewallPorts                          :
ManagementServerIP                     : 10.17.77.80
PodCidrRange                           : 10.64.0.0/16
LocalNetworkIpRange                    : 10.1.0.0/16
LoadBalancerPrivateIP                  :
2024-03-20 10:21:41.26   test Start Main
2024-03-20 10:21:41.26   test Action Type :
2024-03-20 10:21:41.27   test Resource Type : INGRESS
2024-03-20 10:21:41.27   test Start Install-PriorityClass
2024-03-20 10:21:41.28   test Creating Priority Class in default namespace.......
"ifscloud" has been added to your repositories
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "ifscloud" chart repository
Update Complete. ⎈Happy Helming!⎈
Release "priority-class" does not exist. Installing it now.
NAME: priority-class
LAST DEPLOYED: Wed Mar 20 10:21:42 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
2024-03-20 10:21:42.97   test Priority Class in default namespace created successfully
2024-03-20 10:21:42.97   test Stop Install-PriorityClass
2024-03-20 10:21:42.98   test Start Download-IfsIngress
2024-03-20 10:21:42.98   test Downloading IfsIngress.......
"ifscloud" has been added to your repositories
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "ifscloud" chart repository
Update Complete. ⎈Happy Helming!⎈
Error: chart "ifs-ingress" matching 3.2.3 not found in ifscloud index. (try 'helm repo update'): no chart version found for ifs-ingress-3.2.3
2024-03-20 10:21:43.98   test IfsIngress downloaded successfully
2024-03-20 10:21:43.98   test Stop Download-IfsIngress
2024-03-20 10:21:43.99   test Start ImagePullSecret-IfsIngress
2024-03-20 10:21:43.99   test Creating ImagePullSecret ifs-ingress namespace.......
"ifscloud" has been added to your repositories
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "ifscloud" chart repository
Update Complete. ⎈Happy Helming!⎈
Release "imgpullsec-ingress" does not exist. Installing it now.
NAME: imgpullsec-ingress
LAST DEPLOYED: Wed Mar 20 10:21:45 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
2024-03-20 10:21:45.54   test IFSIngress ImagePullSecret created successfully
2024-03-20 10:21:45.54   test Stop ImagePullSecret-IfsIngress
2024-03-20 10:21:45.56   test Start Install-IfsIngress
2024-03-20 10:21:45.56   test Installing ifs-ingress.......
Your certificate has been saved in D:\ifsroot\utils\..\config\certs/ca.crt.
Your private key has been saved in D:\ifsroot\utils\..\config\certs/ca.key.
Your certificate has been saved in D:\ifsroot\utils\..\config\certs/issuer.crt.
Your private key has been saved in D:\ifsroot\utils\..\config\certs/issuer.key.
Get-Content : Cannot find path 'D:\ifsroot\infrastructure\ifs-ingress\values-docker-images.yaml' because it does not exist.
At D:\ifsroot\utils\local.psm1:696 char:6
+     (Get-Content $chartsPath/ifs-ingress/values-docker-images.yaml) | ...
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\ifsroot\infr...ker-images.yaml:String) \Get-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
Get-Content : Cannot find path 'D:\ifsroot\infrastructure\ifs-ingress\values-docker-images.yaml' because it does not exist.
At D:\ifsroot\utils\local.psm1:698 char:6
+     (Get-Content $chartsPath/ifs-ingress/values-docker-images.yaml) | ...
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\ifsroot\infr...ker-images.yaml:String) NGet-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
Release "ingress" does not exist. Installing it now.
Error: path "D:\\ifsroot\\utils\\..\\infrastructure/ifs-ingress" not found
2024-03-20 10:21:46.45   test ifs-ingress installed successfully
2024-03-20 10:21:46.45   test Stop Install-IfsIngress

Be the first to reply!

Reply