Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
apiVersion: eventing.knative.dev/v1alpha1
kind: Subscription
metadata:
name: rgw-ps-subscription
namespace: rgwpubsub
spec:
channel:
apiVersion: eventing.knative.dev/v1alpha1
kind: Channel
name: rgw-ps-channel
subscriber:
ref:
apiVersion: serving.knative.dev/v1alpha1
kind: Service
name: rgwpubsub-svc
---
apiVersion: v1
kind: Secret
metadata:
name: rgw-pubsub-secret
namespace: rgwpubsub
stringData:
s3id: <rgw s3 access key>
s3key: <rgw s3 key secret>
s3host: <rgw endpoint URL>
apikey: <google vision api key>
---
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: rgwpubsub-svc
namespace: rgwpubsub
spec:
runLatest:
configuration:
revisionTemplate:
spec:
container:
image: docker.io/rootfs/rgwpubsub-knative-vision
env:
- name: S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: rgw-pubsub-secret
key: s3id
- name: S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: rgw-pubsub-secret
key: s3key
- name: S3_HOSTNAME
valueFrom:
secretKeyRef:
name: rgw-pubsub-secret
key: s3host
- name: GOOGLE_VISION_API_KEY
valueFrom:
secretKeyRef:
name: rgw-pubsub-secret
key: apikey