Instance Profile

An Instance Profile is an abstraction over the resource characteristics of an instance (basically, as of today, CPU “cores” and RAM). It is represented in StackGres with the CRD SGInstanceProfile. You can think of instance profiles as “t-shirt sizes”, a way to create named t-shirt sizes, that you will reference when you create your clusters. It is a way to enforce best practices by using standardized instance sizes.

Create the following file: sginstanceprofile-small.yaml:

apiVersion: stackgres.io/v1
kind: SGInstanceProfile
metadata:
  namespace: demo
  name: size-small
spec:
  cpu: "4"
  memory: "8Gi"

and deploy to Kubernetes:

kubectl apply -f sginstanceprofile-small.yaml

You may create other instance profiles with other sizes if you wish.

You can list the created (available) instance profiles from the Web Console or via:

$ kubectl -n demo get sginstanceprofiles