mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
23 lines
497 B
Plaintext
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
|
|
---- |