Skip to content

Instantly share code, notes, and snippets.

View shinji62's full-sized avatar

Etourneau Gwenn shinji62

View GitHub Profile
@shinji62
shinji62 / universe.py
Created March 14, 2024 06:55
universepython
import os, sys; sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import yb_platform_client
from yb_platform_client.api import cloud_providers_api
from yb_platform_client.api import session_management_api
from yb_platform_client.api import universe_cluster_mutations_api
from yb_platform_client.api import user_management_api
from yb_platform_client.models.universe_configure_task_params \
import UniverseConfigureTaskParams
from yb_platform_client.models.cluster import Cluster
from yb_platform_client.models.device_info import DeviceInfo
@shinji62
shinji62 / skupper.yaml
Created February 1, 2024 05:00
K8S-override-skupper
statefulSetAnnotations:
skupper.io/proxy: "tcp"
skupper.io/headless: "true"
Services:
- name: "yb-masters"
label: "yb-master"
skipHealthChecks: false
memory_limit_to_ram_ratio: 0.85
ports:
http-ui: "7000"
{
"$ref": "#/definitions/ClusterConfig",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"AZSubnetMapping": {
"additionalProperties": {
"$ref": "#/definitions/AZSubnetSpec"
},
"type": "object",
@shinji62
shinji62 / eksctl-shema.json
Last active March 11, 2020 06:36
eksctl-shema
{"ClusterCloudWatch":{"additionalProperties":false,"properties":{"clusterLogging":{"$ref":"#/definitions/ClusterCloudWatchLogging","$schema":"http://json-schema.org/draft-04/schema#"}},"type":"object"},"ClusterCloudWatchLogging":{"additionalProperties":false,"properties":{"enableTypes":{"items":{"type":"string"},"type":"array"}},"type":"object"},"ClusterConfig":{"additionalProperties":false,"properties":{"TypeMeta":{"$ref":"#/definitions/TypeMeta","$schema":"http://json-schema.org/draft-04/schema#"},"availabilityZones":{"items":{"type":"string"},"type":"array"},"cloudWatch":{"$ref":"#/definitions/ClusterCloudWatch","$schema":"http://json-schema.org/draft-04/schema#"},"fargateProfiles":{"items":{"$ref":"#/definitions/FargateProfile","$schema":"http://json-schema.org/draft-04/schema#"},"type":"array"},"iam":{"$ref":"#/definitions/ClusterIAM","$schema":"http://json-schema.org/draft-04/schema#"},"managedNodeGroups":{"items":{"$ref":"#/definitions/ManagedNodeGroup","$schema":"http://json-schema.org/draft-04/schema
# add missing variables
- type: replace
path: /variables?/name=atc-db-password?
value:
name: atc-db-password
type: password
- type: replace
path: /variables?/name=credhub-encryption-password?
value:
name: credhub-encryption-password
@shinji62
shinji62 / kb.md
Last active June 11, 2020 19:24
Blobstore migration nfs to azure blob store

Purpose

This KB will help you to migrate your ERT/PAS blobstore from NFS to Azure blob storage. We use goblob a tool develop by pivotal to help for migration. This tool only support S3 compatible api storage so we add a s3 gateway (minio) in-between nfs and azure blobstorage.

Minio is a stable and simple way to achieve it.

Requirements

---
jobs:
- name: stop
serial: true
plan:
- task: stop
config:
platform: linux
image_resource:
type: docker-image
@shinji62
shinji62 / harbor-pks-clair-proxy.md
Last active February 14, 2018 01:53
Add proxy to harbor PKS
sudo su -
monit stop harbor

Check with monit summary to be sure harbor is stop

vi /var/vcap/packages/harbor-app/docker-compose.clair.yml

Then on the clair configuration just add your proxy

@shinji62
shinji62 / pipeline.yml
Created October 5, 2017 05:36
Extract docker image pipeline
resources:
- name: docker-slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
- name: my-docker-image-s3
type: s3
source:
access_key_id: ((s3-access-key-id))
private-key-github-concourse: |
-----BEGIN RSA PRIVATE KEY-----
MIIJ..........................
.....
.....
-----END RSA PRIVATE KEY-----