Skip to content

Commit

Permalink
operators ack-applicationautoscaling-controller (0.2.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ack-bot committed Mar 25, 2022
1 parent cc6c593 commit 6109d56
Show file tree
Hide file tree
Showing 9 changed files with 1,067 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM scratch

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=ack-applicationautoscaling-controller
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.16.0+git
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=unknown

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/

# Copy files to locations specified by labels.
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard/
Original file line number Diff line number Diff line change
@@ -0,0 +1,287 @@
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: |-
[
{
"apiVersion": "applicationautoscaling.services.k8s.aws/v1alpha1",
"kind": "ScalableTarget",
"metadata": {
"name": "example"
},
"spec": {}
},
{
"apiVersion": "applicationautoscaling.services.k8s.aws/v1alpha1",
"kind": "ScalingPolicy",
"metadata": {
"name": "example"
},
"spec": {}
}
]
capabilities: Basic Install
categories: Cloud Provider
certified: "false"
containerImage: public.ecr.aws/aws-controllers-k8s/applicationautoscaling-controller:v0.2.8
createdAt: "2022-03-25 18:57:08"
description: AWS Application Auto Scaling controller is a service controller for
managing Application Auto Scaling resources in Kubernetes
operatorframework.io/suggested-namespace: ack-system
operators.operatorframework.io/builder: operator-sdk-v1.16.0+git
operators.operatorframework.io/project_layout: unknown
repository: https://github.com/aws-controllers-k8s
support: Community
name: ack-applicationautoscaling-controller.v0.2.8
namespace: placeholder
spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- description: ScalableTarget represents the state of an AWS applicationautoscaling
ScalableTarget resource.
displayName: ScalableTarget
kind: ScalableTarget
name: scalabletargets.applicationautoscaling.services.k8s.aws
version: v1alpha1
- description: ScalingPolicy represents the state of an AWS applicationautoscaling
ScalingPolicy resource.
displayName: ScalingPolicy
kind: ScalingPolicy
name: scalingpolicies.applicationautoscaling.services.k8s.aws
version: v1alpha1
description: |-
Manage Amazon Application Auto Scaling resources in AWS from within your Kubernetes cluster.
**About Amazon Application Auto Scaling**
Application Auto Scaling is a web service for developers and system administrators who need a solution for automatically scaling their scalable resources for individual AWS services beyond Amazon EC2. Application Auto Scaling allows you to configure automatic scaling for the following resources:
- AppStream 2.0 fleets
- Aurora replicas
- Amazon Comprehend document classification and entity recognizer endpoints
- DynamoDB tables and global secondary indexes
- Amazon Elastic Container Service (ECS) services
- Amazon EMR clusters
- Amazon Keyspaces (for Apache Cassandra) tables
- Lambda function provisioned concurrency
- Amazon Managed Streaming for Apache Kafka (MSK) broker storage
- SageMaker endpoint variants
- Spot Fleet requests
- Custom resources provided by your own applications or services. For more information, see the [GitHub repository](https://github.com/aws/aws-auto-scaling-custom-resource)
**About the AWS Controllers for Kubernetes**
This controller is a component of the [AWS Controller for Kubernetes](https://github.com/aws/aws-controllers-k8s) project. This project is currently in **developer preview**.
**Pre-Installation Steps**
Please follow the following link: [Red Hat OpenShift](https://aws-controllers-k8s.github.io/community/docs/user-docs/openshift/)
displayName: AWS Controllers for Kubernetes - Amazon Application Auto Scaling
icon:
- base64data: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMSw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YsNC41LTEsMzUuNC0xOC42LDUwLjJjLTIuNywyLjMtNS4zLDEuMS00LjEtMS45QzI4Mi41LDE1NS43LDI5MS40LDEzMy40LDI4Ny4yLDEyOC4xeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPg==
mediatype: image/svg+xml
install:
spec:
clusterPermissions:
- rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- patch
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- patch
- watch
- apiGroups:
- applicationautoscaling.services.k8s.aws
resources:
- scalabletargets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- applicationautoscaling.services.k8s.aws
resources:
- scalabletargets/status
verbs:
- get
- patch
- update
- apiGroups:
- applicationautoscaling.services.k8s.aws
resources:
- scalingpolicies
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- applicationautoscaling.services.k8s.aws
resources:
- scalingpolicies/status
verbs:
- get
- patch
- update
- apiGroups:
- services.k8s.aws
resources:
- adoptedresources
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- services.k8s.aws
resources:
- adoptedresources/status
verbs:
- get
- patch
- update
- apiGroups:
- services.k8s.aws
resources:
- fieldexports
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- services.k8s.aws
resources:
- fieldexports/status
verbs:
- get
- patch
- update
serviceAccountName: ack-applicationautoscaling-controller
deployments:
- name: ack-applicationautoscaling-controller
spec:
replicas: 1
selector:
matchLabels:
control-plane: controller
strategy: {}
template:
metadata:
labels:
control-plane: controller
spec:
containers:
- args:
- --aws-region
- $(AWS_REGION)
- --aws-endpoint-url
- $(AWS_ENDPOINT_URL)
- --enable-development-logging
- $(ACK_ENABLE_DEVELOPMENT_LOGGING)
- --log-level
- $(ACK_LOG_LEVEL)
- --resource-tags
- $(ACK_RESOURCE_TAGS)
- --watch-namespace
- $(ACK_WATCH_NAMESPACE)
command:
- ./bin/controller
env:
- name: ACK_SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: AWS_REGION
- name: AWS_ENDPOINT_URL
- name: ACK_WATCH_NAMESPACE
- name: ACK_ENABLE_DEVELOPMENT_LOGGING
value: "false"
- name: ACK_LOG_LEVEL
value: info
- name: ACK_RESOURCE_TAGS
value: services.k8s.aws/managed=true,services.k8s.aws/created=%UTCNOW%,services.k8s.aws/namespace=%KUBERNETES_NAMESPACE%
envFrom:
- configMapRef:
name: ack-user-config
optional: false
- secretRef:
name: ack-user-secrets
optional: false
image: public.ecr.aws/aws-controllers-k8s/applicationautoscaling-controller:v0.2.8
name: controller
ports:
- containerPort: 8080
name: http
resources:
limits:
cpu: 100m
memory: 300Mi
requests:
cpu: 100m
memory: 200Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsNonRoot: true
serviceAccountName: ack-applicationautoscaling-controller
terminationGracePeriodSeconds: 10
strategy: deployment
installModes:
- supported: true
type: AllNamespaces
keywords:
- applicationautoscaling
- aws
- amazon
- ack
links:
- name: AWS Controllers for Kubernetes
url: https://github.com/aws-controllers-k8s/community
- name: Documentation
url: https://aws-controllers-k8s.github.io/community/
- name: Amazon Application Auto Scaling User Guide
url: https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html
maintainers:
- email: ack-maintainers@amazon.com
name: application auto scaling maintainer team
maturity: alpha
provider:
name: Amazon, Inc.
url: https://aws.amazon.com
version: 0.2.8
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: ack-applicationautoscaling-metrics-service
spec:
ports:
- name: metricsport
port: 8080
protocol: TCP
targetPort: http
selector:
control-plane: controller
type: NodePort
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: ack-applicationautoscaling-reader
rules:
- apiGroups:
- applicationautoscaling.services.k8s.aws
resources:
- scalabletargets
- scalingpolicies
verbs:
- get
- list
- watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: ack-applicationautoscaling-writer
rules:
- apiGroups:
- applicationautoscaling.services.k8s.aws
resources:
- scalabletargets
- scalingpolicies
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- applicationautoscaling.services.k8s.aws
resources:
- scalabletargets
- scalingpolicies
verbs:
- get
- patch
- update
Loading

0 comments on commit 6109d56

Please sign in to comment.