This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: core.oam.dev/v1beta1 | |
kind: TraitDefinition | |
metadata: | |
annotations: | |
definition.oam.dev/description: "configure k8s Horizontal Pod Autoscaler for Component which using Deployment as worklaod" | |
name: hpa | |
spec: | |
appliesToWorkloads: | |
- deployments.apps | |
workloadRefPath: spec.scaleTargetRef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: core.oam.dev/v1beta1 | |
kind: Application | |
metadata: | |
name: test-app | |
spec: | |
components: | |
- name: test | |
type: webservice | |
properties: | |
image: nginx:1.21.6-alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: database.example.org/v1alpha1 | |
kind: PostgreSQLInstance | |
metadata: | |
name: my-db | |
namespace: default | |
spec: | |
parameters: | |
storageGB: 20 | |
compositionSelector: | |
matchLabels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: cluster.awsblueprints.io/v1alpha1 | |
kind: amazonEks | |
metadata: | |
name: xplane-eks-cluster | |
namespace: default | |
spec: | |
compositionSelector: | |
matchLabels: | |
awsblueprints.io/provider: aws | |
awsblueprints.io/environment: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: network.awsblueprints.io/v1alpha1 | |
kind: amazonVpc | |
metadata: | |
name: xplane-amazon-vpc | |
namespace: default | |
spec: | |
compositionSelector: | |
matchLabels: | |
awsblueprints.io/provider: aws | |
awsblueprints.io/environment: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: aws.crossplane.io/v1beta1 | |
kind: ProviderConfig | |
metadata: | |
name: default | |
spec: | |
credentials: | |
source: Secret | |
secretRef: | |
namespace: crossplane-system | |
name: aws-creds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.9-alpine | |
RUN pip install Flask flask-cors | |
WORKDIR /app | |
COPY ./ /app | |
EXPOSE 5050 | |
CMD ["python","main.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, send_from_directory, Response | |
from flask_cors import CORS | |
app = Flask(__name__) | |
CORS(app) | |
@app.route('/healthcheck') | |
def healthcheck(): | |
return Response(status=200) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Devspace Tutorial</title> | |
</head> | |
<body> | |
<h1>This is a Heading</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'An EC2 instance which gets harbor v1.5.2 installed and accessible on its public IP' | |
Parameters: | |
KeyName: | |
Description: Name of an existing EC2 KeyPair to enable SSH access to the instance | |
Type: AWS::EC2::KeyPair::KeyName | |
ConstraintDescription: must be the name of an existing EC2 KeyPair. | |
InstanceType: | |
Description: Harbor EC2 instance type |
NewerOlder