Created
October 18, 2022 13:12
-
-
Save IObert/56dc24a92801dea0fbd822d8949fbd6d to your computer and use it in GitHub Desktop.
Kyme 2.0 Deployment Manifest
This file contains hidden or 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
TODO: Adapt namespace and host of API rule | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: content-type-converter | |
namespace: content-type-converter | |
labels: | |
app: content-type-converter | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: content-type-converter | |
template: | |
metadata: | |
labels: | |
app: content-type-converter | |
spec: | |
containers: | |
- image: ghcr.io/iobert/content-type-converter:main | |
name: content-type-converter | |
resources: | |
requests: | |
memory: 64Mi | |
cpu: 50m | |
limits: | |
memory: 128Mi | |
cpu: 100m | |
ports: | |
- containerPort: 8080 | |
env: | |
- name: FORWARD_TO | |
value: https://magic-demo-2851-dev.twil.io | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: content-type-converter | |
name: content-type-converter | |
spec: | |
selector: | |
app: content-type-converter | |
ports: | |
- protocol: TCP | |
port: 8080 | |
targetPort: 8080 | |
--- | |
apiVersion: gateway.kyma-project.io/v1alpha1 | |
kind: APIRule | |
metadata: | |
labels: | |
app: content-type-converter | |
name: content-type-converter | |
spec: | |
gateway: kyma-system/kyma-gateway | |
service: | |
name: content-type-converter | |
port: 8080 | |
host: ctc.c-32abea2.kyma.ondemand.com | |
rules: | |
- accessStrategies: | |
- config: {} | |
handler: allow | |
methods: | |
- GET | |
- POST | |
- PUT | |
- DELETE | |
- PATCH | |
- HEAD | |
path: /.* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment