Skip to content

Instantly share code, notes, and snippets.

View ernesen's full-sized avatar

Ernese Norelus ernesen

  • Synpulse
View GitHub Profile
components: # components definition
schemas:
Account: #Account Object
type: object
properties: #Object properties
uuid:
type: string
description: UUID #type description
type:
type: string #Data type
Version URI State
V1.6 api/v1.6/account/checking Live
V1.5 api/v1.5/account/checking Superseded
V1.4 api/v1.4/account/checking Deprecated
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
API Lifecycle Stage / State,Stage Description
Proposed,"A proposal to create new API, change existing API or retire existing API. Typically, the API Contract document would be drafted during this phase"
Approved to Plan (Part of Candidate API Catalog),"Approved API Proposal (New/Change/Retire) by Design Council. Typically, the API Contract would be further refined during this phase."
Approved to Build,Approved API Specifications by Technical Architecture Board.
Draft,Product or API definition is not deployed and is not associated with any catalog.
Staged,"A copy of the Product version is deployed to the target catalog. Staged is the initial state when you publish a Product. When a Product is in the staged state, it is not yet visible to, or subscribe-able by, any developers."
Published,"A fixed copy of the Product version is deployed to the target catalog. The Product version is visible to, and subscribe-able by, the targeted developers or communities. When a Product is published in a catalog, the visibility
helm init
helm version --tls
cd ~/artefacts/employee/chart/
helm package employee
# helm del --purge employee --tls
helm install --name employee employee-1.0.0.tgz --namespace employee --tls
kubectl get po,svc -n employee
curl -kLo cloudctl-linux-amd64-3.1.2-1203 https://192.168.27.100:8443/api/cli/cloudctl-linux-amd64
sudo mv cloudctl-linux-amd64-3.1.2-1203 /usr/local/bin/cloudctl
sudo chmod +x /usr/local/bin/cloudctl
curl -kLo cloudctl-linux-amd64-3.1.2-1203 https://192.168.27.100:8443/api/cli/cloudctl-linux-amd64
sudo mv cloudctl-linux-amd64-3.1.2-1203 /usr/local/bin/cloudctl
sudo chmod +x /usr/local/bin/cloudctl
sed -i "s|employee|mycluster.icp:8500/employee/employee|" ~/artefacts/employee/chart/employee/values.yaml
sed -i "s|/health|/v1/health|" ~/artefacts/employee/chart/employee/templates/deployment.yaml
docker tag employee mycluster.icp:8500/employee/employee:v1.0.0
docker push mycluster.icp:8500/employee/employee:v1.0.0
sudo nano /etc/docker/daemon.json
echo "{" | sudo tee -a /etc/docker/daemon.json
echo " \"insecure-registries\" : [ \"mycluster.icp:8500\" ]" | sudo tee -a /etc/docker/daemon.json
echo "}" | sudo tee -a /etc/docker/daemon.json
sudo service docker restart
$ docker login mycluster.icp:8500
kubectl get clusterrolebinding ibm-privileged-psp-users -o yaml > privileged-psp-user.yaml
echo "- apiGroup: rbac.authorization.k8s.io" | sudo tee -a privileged-psp-user.yaml
echo " kind: Group" | sudo tee -a privileged-psp-user.yaml
echo " name: system:serviceaccounts:employee" | sudo tee -a privileged-psp-user.yaml
kubectl apply -f privileged-psp-user.yaml