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
package main | |
import ( | |
"fmt" | |
"log" | |
"math/rand" | |
"os" | |
"sync" | |
"time" |
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
def GenerateConfig(context): | |
"""Generate YAML resource configuration.""" | |
cluster_types_root = '{}/kubernetes'.format(context.env['project']) | |
cluster_types = { | |
'Service': '{}-v1:/api/v1/namespaces/{{namespace}}/services'.format(cluster_types_root), | |
'Deployment': '{}-v1beta1-apps:/apis/apps/v1beta1/namespaces/{{namespace}}/deployments'.format(cluster_types_root), | |
'Ingress': '{}-v1beta1-extensions:/apis/extensions/v1beta1/namespaces/{{namespace}}/ingresses'.format(cluster_types_root), | |
} |
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
def GenerateConfig(context): | |
"""Generate YAML resource configuration.""" | |
cluster_name = context.properties['CLUSTER_NAME'] | |
cluster_region = context.properties['CLUSTER_ZONE'] | |
number_of_nodes = context.properties['NUM_NODES'] | |
resources = [] | |
outputs = [] |
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
def GenerateConfig(context): | |
"""Generate YAML resource configuration.""" | |
cluster_types_root = '{}/kubernetes'.format(context.env['project']) | |
cluster_types = { | |
'Service': '{}-v1:/api/v1/namespaces/{{namespace}}/services'.format(cluster_types_root), | |
'Deployment': '{}-v1beta1-apps:/apis/apps/v1beta1/namespaces/{{namespace}}/deployments'.format(cluster_types_root) | |
} | |
name = context.properties['name'] |
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
imports: | |
- path: kubernetes_engine.py | |
- path: kubernetes_engine_apis.py | |
resources: | |
- name: cluster | |
type: kubernetes_engine.py | |
properties: | |
CLUSTER_NAME: [[YOUR-CLUSTER-NAME]] | |
CLUSTER_ZONE: [[YOUR-CLUSTER-ZONE]] |
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
def GenerateConfig(context): | |
"""Generate YAML resource configuration.""" | |
endpoints = { | |
'-v1': 'api/v1', | |
'-v1beta1-apps': 'apis/apps/v1beta1', | |
'-v1beta1-extensions': 'apis/extensions/v1beta1' | |
} | |
resources = [] |
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
def GenerateConfig(context): | |
"""Generate YAML resource configuration.""" | |
cluster_name = context.properties['CLUSTER_NAME'] | |
cluster_zone = context.properties['CLUSTER_ZONE'] | |
number_of_nodes = context.properties['NUM_NODES'] | |
resources = [] | |
resources.append({ | |
'name': cluster_name, |
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
apiVersion: v1 | |
kind: Config | |
preferences: {} | |
clusters: | |
- cluster: | |
certificate-authority-data: [[REDACTED]] | |
server: [[REDACTED]] | |
name: white | |
- cluster: |
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
apiVersion: v1 | |
kind: Config | |
preferences: {} | |
clusters: | |
- cluster: | |
certificate-authority-data: [[REDACTED]] | |
server: [[REDACTED]] | |
name: white | |
- cluster: |
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
helm list | |
NAME REVISION UPDATED STATUS CHART NAMESPACE | |
solitary-possum 1 Mon Jun 4 15:41:48 2018 DEPLOYED ibm-blockchain-network-1.0.0 default | |
helm delete solitary-possum | |
release "solitary-possum" deleted |