Code Monkey home page Code Monkey logo

Comments (6)

bridgetkromhout avatar bridgetkromhout commented on August 16, 2024

Hi, @zohebs341! Opening issues in this AKS Engine repo unfortunately will not get you any answers about deploying AKS in Azure Stack Hub. Please open an issue in the Azure Stack Docs repo https://github.com/MicrosoftDocs/azure-stack-docs/issues so that team can guide you in the right direction - thanks!

from aks-engine.

jadarsie avatar jadarsie commented on August 16, 2024

Hello @zohebs341, I can answer quickly.

How can I renew it in the future as the validation will be one year for that secret?

You can either execute aks-engine upgrade using the new secret, deploy a new cluster or manually update /etc/kubernetes/azure.json on each node.

If the secret is expired then the cluster will not be operational/functional.

True, operations that require K8s to CRUD IaaS resources will fail.

Or do I need to contact the Azure Stack Hub cloud operator to provide Service Principal name/secret details

You would need just a new secret for the SPN.

from aks-engine.

zohebs341 avatar zohebs341 commented on August 16, 2024

@jadarsie Thank you Javier.

If I use aks-engine upgrade command with new SPN client ID/client Secret. It will just upgrade existing cluster right? Rather than creating a new cluster. I mean to say, existing VMs/LoadBalncers/ deployed applications will remain unchanged.

New Client ID & Secret with below command is fine I guess?

aks-engine upgrade
--azure-env AzureStackCloud
--location xyz
--resource-group kube-rg
--subscription-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
--api-model kube-rg/apimodel.json
--client-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
--client-secret xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
--force

from aks-engine.

jadarsie avatar jadarsie commented on August 16, 2024

I would also update servicePrincipalProfile just in case.

existing VMs/LoadBalncers/ deployed applications will remain unchanged

VMs will be recreated and pods moved around, storage is something else to consider, please read this.

Depending on your capacity/networking constraints and/or the type of deployed applications, it may be worthwhile considering a cluster upgrade process that consists of creating new clusters instead of upgrading existing ones.

from aks-engine.

zohebs341 avatar zohebs341 commented on August 16, 2024

@jadarsie Hi Javier.

For secrets, we can create an SPN first and then create a secret with an expiry of 2 years right? at least, in this case, the secret expiry will be for two years rather than one year.

from aks-engine.

jadarsie avatar jadarsie commented on August 16, 2024

yes you can

from aks-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.