module
Version:
v0.0.0-...-cb5c30f
Opens a new window with list of versions in this module.
Published: Oct 31, 2019
License: Apache-2.0
Opens a new window with license information.
README
¶
Ahora SPA Operator
Introduction
Manage SPA deployment with crds in kubernetes.
You are more than welcome to contribute to this project.
Usage
# Setup Service Account
$ kubectl create -f deploy/service_account.yaml
# Setup RBAC
$ kubectl create -f deploy/role.yaml
$ kubectl create -f deploy/role_binding.yaml
# Setup the CRD
$ kubectl create -f deploy/crds/ahora.dev_spas_crd.yaml
# Deploy the spa-operator
$ kubectl create -f deploy/operator.yaml
# Create a SPA CR
$ kubectl create -f examples/example.yaml
CR Example
apiVersion: ahora.dev/v1alpha1
kind: SPA
metadata:
name: example-spa
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
SPAArchiveURL: https://storage.googleapis.com/ahora-spa-archives/spa-demo.tar.gz
replicas: 2
hosts:
- www.example.com
- example.com
tls:
- secretName: example-ssl
hosts:
- www.example.com
- example.com
livenessProbe:
httpGet:
path: /status
port: 80
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /status
port: 80
initialDelaySeconds: 3
periodSeconds: 3
resources:
requests:
memory: "32Mi"
cpu: "50m"
limits:
memory: "64Mi"
cpu: "100m"
paths:
- path: /api
backend:
serviceName: backendservice
servicePort: 80
TODOs
Directories
¶
cmd
|
|
|
|
|
pkg
|
|
|
|
|
apis/ahora
Package ahora contains ahora API versions.
|
Package ahora contains ahora API versions. |
apis/ahora/v1alpha1
Package v1alpha1 contains API Schema definitions for the ahora v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=ahora.dev
|
Package v1alpha1 contains API Schema definitions for the ahora v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=ahora.dev |
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.