Solved

Creating k10Profiles/Policy with yaml


Userlevel 2

When i create a profile/policy for k10 as yaml does this resource have to be in the kasten-io namespace or can they be defined in any namespace? e.g. “my-namespace”

 

apiVersion: config.kio.kasten.io/v1alpha1kind: Profilemetadata:  name: sample-profile  namespace: my-namespace
apiVersion: config.kio.kasten.io/v1alpha1kind: Policymetadata:  name: sample-backup-policy  namespace: my-namespace


What about the secret necessary for the profile? Can this be definded outside the kasten-io namespace ?

Thx in advance ;)​

icon

Best answer by jaiganeshjk 26 April 2023, 17:28

View original

3 comments

Userlevel 7
Badge +20

@jaiganeshjk @Geoff Burke 

Userlevel 6
Badge +2

@markbon Thank you for posting your question here.

K10 requires profiles to be there in the namespace as the K10 is installed(By default it is kasten-io)

If you have installed K10 in a namespace called kasten-io, Profile resources are expected to be in kasten-io namespace.

 

However, Policies are allowed to be created in other namespaces. We call them application-scoped policies. This is to allow non-admin users to create policies for their namespaces,

 

Do you have a specific use-case to create profile out of K10s namespace ?

Userlevel 2

just gave it a try, worked like a charm. Thx for the quick help 👍

Comment