Skip to content

Instantly share code, notes, and snippets.

View aramalipoor's full-sized avatar
🎯
Focusing

aram.eth aramalipoor

🎯
Focusing
View GitHub Profile
@aramalipoor
aramalipoor / buildconfig.yml
Last active June 24, 2018 15:18
How to use Input Secrets to clone multiple repositories in OpenShift's BuildConfig?
# You can edit a BuildConfig's YAML either via UI
# or by running `oc edit bc/MY_APP`
spec:
# ...
source:
# ...
secrets:
# This path must be relative when BuildConfig's "strategy" is Docker
- destinationDir: secrets/github-myorg
secret:
@aramalipoor
aramalipoor / .env
Last active March 28, 2019 07:36
Elasticsearch 6.x + OSS Repository Plugin
# For ES 6.x Java XML Bind module must be explicitly added
ES_JAVA_OPTS=-Xms1000m -Xmx1000m -Des.logger.level=DEBUG --add-modules java.xml.bind
@aramalipoor
aramalipoor / 0-README.md
Last active November 21, 2023 15:52
Secure Kafka brokers with SSL and expose externally in OpenShift/Kubernetes via a passthrough Route

Kafka SSL + OpenShift Routes

To expose Kafka port externally enable SSL/TLS configuration in Kafka.

  1. Build the image based on this Dockerfile
  2. Generate all keys and certificates based on gen.sh. Note Replace <YOUR_KAFKA_DOMAIN_HERE> and passphrase (i.e. test1234).
  3. Create a secret based to store all certificates:
    oc create secret generic kafka-ssl --from-file=/absolute/path/to/generated/certs/dir
  4. Update Kafka's Statefulset to enable SSL (statefulset.yml holds already patched version of our template):

Keybase proof

I hereby claim:

  • I am aramalipoor on github.
  • I am alipoor (https://keybase.io/alipoor) on keybase.
  • I have a public key ASBjjvuvZdOlwS8JHQWRBzYVx9d4L05-8oGdJcVpA-7SQQo

To claim this, I am signing this object:

@aramalipoor
aramalipoor / okd-share-resources.yml
Last active December 30, 2018 17:02
OKD Role and RoleBinding suitable to share Templates and ImageStreams with other users and projects
apiVersion: v1
kind: Template
metadata:
name: shared-resource-viewer
parameters:
- displayName: Project / Namespace
description: Name of the project (might be current project) from which you want to publish/share Templates and ImageStreams
name: NAMESPACE
required: true
value: my-project-name
@aramalipoor
aramalipoor / erpc.yaml
Last active January 30, 2025 13:13
eRPC simple config example with public endpoints
# See the full docs: https://docs.erpc.cloud
# Endpoints from: https://chainlist.org/chain/1
logLevel: debug
projects:
- id: main
networkDefaults:
failsafe:
timeout:
duration: "30s"