Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest containers #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions roles/provision-gw-http-sink-apb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
- name: create Event-Type/topic config map
k8s_v1_config_map:
name: '{{ event_type | lower }}'
namespace: '{{ namespace }}'
labels:
strimzi.io/kind: topic
strimzi.io/cluster: my-cluster
data:
name: '{{ event_type }}'
partitions: '1'
replicas: '1'
- name: "create Event-Type/topic CR file"
template:
src: kafka-topic.yaml.j2
dest: /tmp/kafka-topic.yaml

- name: "Create Event-Type/topic"
shell: "oc create -f /tmp/kafka-topic.yaml -n {{ namespace }}"

- name: "Delete Event-Type/topic Template File"
file: path=/tmp/kafka-topic.yaml state=absent

- name: create deployment config
k8s_extensions_v1beta1_deployment:
Expand All @@ -29,6 +28,6 @@
value: '{{ consumer_group }}'
- name: HTTP_OUTPUT_ENDPOINT
value: '{{ http_uri }}'
image: docker.io/streamzi/gw-http-sink:latest
image: docker.io/streamzi/cloudevents-gateway-http-sink:latest
imagePullPolicy: IfNotPresent
name: http-sink
14 changes: 14 additions & 0 deletions roles/provision-gw-http-sink-apb/templates/kafka-topic.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kafka.strimzi.io/v1alpha1
kind: KafkaTopic
metadata:
name: {{ event_type | lower }}
labels:
strimzi.io/cluster: my-cluster
spec:
partitions: 1
replicas: 1
config:
retention.ms: 7200000
segment.bytes: 1073741824