1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/osdk-java-create-cr.adoc
Andrew Taylor c61d8f0384 OSDOCS-2933 Java OSDK
peer review feedback

SME/QE review

final review feedback
2022-07-22 13:43:37 +00:00

23 lines
497 B
Plaintext

// Module included in the following assemblies:
//
// * operators/operator_sdk/java/osdk-java-tutorial.adoc
:_content-type: PROCEDURE
[id="osdk-java-create-cr_{context}"]
= Creating a Custom Resource
After generating the CRD manifests, you can create the Custom Resource (CR).
.Procedure
* Create a Memcached CR called `memcached-sample.yaml`:
+
[source,yaml]
----
apiVersion: cache.example.com/v1
kind: Memcached
metadata:
name: memcached-sample
spec:
# Add spec fields here
size: 1
----