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
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 |
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
total 56 | |
drwxr-xr-x 5 root root 4096 Jun 4 22:42 . | |
drwxr-xr-x 1 root root 4096 Jun 4 22:42 .. | |
-rw-r--r-- 1 root root 0 Jun 4 22:42 bootstrapped | |
drwxr-xr-x 4 root root 4096 Jun 4 22:00 cas | |
-rw-r--r-- 1 root root 6891 Jun 4 22:42 configtx.yaml | |
drwxr-xr-x 4 root root 4096 Jun 4 22:00 crypto-config | |
-rw-r--r-- 1 root root 16 Jun 4 21:59 index.html | |
drwxr-xr-x 2 root root 16384 Jun 4 21:59 lost+found | |
-rw-r--r-- 1 root root 9070 Jun 4 22:42 orderer.block |