1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/osdk-java-create-cr.adoc
2023-10-30 10:13:25 -04:00

23 lines
506 B
Plaintext

// Module included in the following assemblies:
//
// * operators/operator_sdk/java/osdk-java-tutorial.adoc
:_mod-docs-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
----