Skip to content

Example YAMLs #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions alm-manifests/apptype.crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: apptypes.app.coreos.com
spec:
group: app.coreos.com
version: v1
scope: Namespaced
names:
plural: apptypes
singular: apptype
kind: AppType
shortNames:
- at

2 changes: 2 additions & 0 deletions alm-manifests/my-console.tectonic-console.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
apiVersion: tectonic-console.coreos.com/v1
kind: TectonicConsole
28 changes: 28 additions & 0 deletions alm-manifests/mysql.apptype.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: app.coreos.com/v1
kind: AppType
metadata:
name: mysql
type: com.tectonic.storage
spec:
operator:
image: quay.io/coreos/mysql-operator:stable
descriptions:
short: Managed MySQL database
long: Provides a managed MySQL database including support for automatic high availability, continuous backups and restoration, dashboards and management tooling.
resources:
- metadata:
name: mysqls.mysql.coreos.com
spec:
group: mysql.coreos.com
version: v1
scope: Namespaced
names:
plural: mysqls
singular: mysql
kind: MySQL
schema: TODO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this one too.

outputs:
- name: service-name
type: string
description: The service name at which to connect to the newly formed MySQL

19 changes: 19 additions & 0 deletions alm-manifests/mysql.crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: mysqls.mysql.coreos.com
spec:
group: mysql.coreos.com
version: v1
validation:
openAPISpecV3: TODO
scope: Namespaced
names:
plural: mysqls
singular: mysql
kind: MySQL
outputs:
- name: service-name
type: string
description: The service name at which to connect to the newly formed MySQL

8 changes: 8 additions & 0 deletions alm-manifests/nginx.apptype.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: app.coreos.com/v1
kind: AppType
metadata:
name: nginx
spec:
operator:
image: quay.io/coreos/stateless-app-operator:stable

17 changes: 17 additions & 0 deletions alm-manifests/nginx.crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# FIXME: Should be created by the ALM Operator
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: nginxes.nginx.coreos.com
spec:
group: nginx.coreos.com
version: v1
validation:
openAPISpecV3: TODO
scope: Namespaced
names:
plural: nginxes
singular: nginx
kind: Nginx
shortNames:
- ng
10 changes: 10 additions & 0 deletions alm-manifests/nginx.operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: app.coreos.com/v1
kind: Operator
metadata:
name: NginxOperator
namespace: alm
spec:
containers:
- name: nginx-operator
image: quay.io/coreos/stateless-app-operator:stable

15 changes: 15 additions & 0 deletions alm-manifests/operator.crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: operators.app.coreos.com
spec:
group: app.coreos.com
version: v1
scope: Namespaced
names:
plural: operators
singular: operator
kind: Operator
shortNames:
- op

8 changes: 8 additions & 0 deletions alm-manifests/prod-db.mysql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: mysql.coreos.com/v1
kind: MySQL
metadata:
name: prod-db
spec:
size: 3
version: 5.7.0

8 changes: 8 additions & 0 deletions alm-manifests/staging-db.mysql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: mysql.coreos.com/v1
kind: MySQL
metadata:
name: staging-db
spec:
size: 3
version: 5.7.0