Note: some of the content below is no longer valid with OpenShift v4. If a command doesn't work, it could have been changed from v3.
- To create ssh secret:
oc create secret generic sshsecret \
--from-file=ssh-privatekey=$HOME/.ssh/id_rsa
| # https://github.com/kubernetes-sigs/kustomize/blob/master/examples/transformerconfigs/README.md | |
| commonLabels: | |
| # set labels at metadata.labels for all types | |
| - path: metadata/labels | |
| # create metadata.labels if it doesn't exist | |
| create: true | |
| - path: spec/template/metadata/labels | |
| kind: DeploymentConfig | |
| create: true |
| # This Deployment manifest defines: | |
| # - single-replica deployment of the container image, with label "app: dotnet-hello-world" | |
| # - Pod exposes port 8080 | |
| # - specify PORT environment variable to the container process | |
| # Syntax reference https://kubernetes.io/docs/concepts/configuration/overview/ | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: dotnet-hello-world | |
| spec: |
| # see How to Install Redis Server on CentOS 7 - http://linoxide.com/storage/install-redis-server-centos-7/ | |
| # --- Compiling --- | |
| $ yum install gcc make tcl | |
| $ REDIS_VER=3.2.3 | |
| $ wget http://download.redis.io/releases/redis-$REDIS_VER.tar.gz | |
| $ tar xzvf redis-$REDIS_VER.tar.gz | |
| $ cd redis-$REDIS_VER | |
| $ make | |
| $ make test |
| param ( | |
| [Int] | |
| $clusterSize, | |
| [string] | |
| $VMName, | |
| [Int] | |
| $nodeNumber, | |
| [Int] | |
| $IntIp, | |
| [Int] |