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
| --- | |
| - version: v1alpha1 | |
| group: blog.velotio.com | |
| kind: BookStore | |
| role: /opt/ansible/roles/bookstore |
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
| kubectl apply -f deploy/crds/velotio_v1alpha1_bookstore_cr.yaml |
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
| kubectl apply -f deploy/crds/velotio_v1alpha1_bookstore_crd.yaml |
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
| operator-sdk build akash125/bookstore-operator:v0.0.1 |
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
| operator-sdk new bookstore-operator --api-version=velotio.com/v1alpha1 --kind=BookStore --type=helm --helm-chart=book-store | |
| --helm-chart-repo=https://akash-gautam.github.io/helmcharts/ |
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: velotio.com/v1alpha1 | |
| kind: BookStore | |
| metadata: | |
| name: example-bookstore | |
| spec: | |
| # Default values copied from <project_dir>/helm-charts/book-store/values.yaml | |
| # Default values for book-store. | |
| # This is a YAML-formatted file. | |
| # Declare variables to be passed into your templates. |
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
| --- | |
| - version: v1alpha1 | |
| group: velotio.com | |
| kind: BookStore | |
| chart: /opt/helm/helm-charts/book-store |
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
| FROM centos/systemd | |
| MAINTAINER "Akash Gautam" <akash.gautam@velotio.com> | |
| COPY hello-app / | |
| ENTRYPOINT ["/hello-app"] |
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
| version: 2 | |
| jobs: | |
| build&pushImage: | |
| working_directory: /go/src/hello-app | |
| docker: | |
| - image: circleci/golang:1.10 | |
| steps: | |
| - checkout | |
| - run: |
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
| #!/bin/bash | |
| TAG=$1 | |
| echo "start tiller" | |
| export KUBECONFIG=$HOME/.kube/kubeconfig | |
| helm tiller start-ci | |
| export HELM_HOST=127.0.0.1:44134 | |
| result=$(eval helm ls | grep helloapp) | |
| if [ $? -ne "0" ]; then | |
| helm install --timeout 180 --name helloapp --set image.tag=$TAG charts/helloapp | |
| else |