mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-22 01:03:27 +00:00
* StatefulSet Draft Signed-off-by: jguionnet <jguionnet@guidewire.com> * First running version Signed-off-by: jguionnet <jguionnet@guidewire.com> * Add generated component definition Signed-off-by: jguionnet <jguionnet@guidewire.com> * Adding an statefulset example inline with the component doc Signed-off-by: jguionnet <jguionnet@guidewire.com> * Adjustment to an example defining a simplistic statefulset and trait Signed-off-by: jguionnet <jguionnet@guidewire.com> * Fix PR Review comments Signed-off-by: jguionnet <jguionnet@guidewire.com> * After running make reviewable and more ... Signed-off-by: jguionnet <jguionnet@guidewire.com> --------- Signed-off-by: jguionnet <jguionnet@guidewire.com>
20 lines
488 B
YAML
20 lines
488 B
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: website
|
|
namespace: default
|
|
spec:
|
|
components:
|
|
- name: custom-component
|
|
type: test-stateful
|
|
properties:
|
|
image: nginx:latest
|
|
replicas: 1
|
|
traits:
|
|
- type: storageclass
|
|
properties:
|
|
volumeClaimTemplates:
|
|
- name: test
|
|
requests: 1Gi
|
|
storageClassName: local-path
|
|
mountPath: /usr/share/nginx/html |