diff --git a/_resources/dummy-cluster/deploy.yml b/_resources/dummy-cluster/deploy.yml deleted file mode 100644 index c0be95b..0000000 --- a/_resources/dummy-cluster/deploy.yml +++ /dev/null @@ -1,101 +0,0 @@ ---- -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: web - labels: - name: web - env: production -spec: - replicas: 3 - strategy: - type: RollingUpdate - template: - metadata: - labels: - name: web - spec: - containers: - - name: web - image: dockercloud/hello-world - env: - - name: LISTEN_PORT - value: "80" - ports: - - containerPort: 80 ---- -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: user - labels: - name: user - env: production -spec: - replicas: 3 - strategy: - type: RollingUpdate - template: - metadata: - labels: - name: user - spec: - containers: - - name: user - image: dockercloud/hello-world - env: - - name: LISTEN_PORT - value: "8000" - ports: - - containerPort: 8000 ---- -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: redis - labels: - name: redis - env: production -spec: - replicas: 3 - strategy: - type: RollingUpdate - template: - metadata: - labels: - name: redis - spec: - containers: - - name: redis - image: redis - ports: - - containerPort: 6379 ---- -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: mysql - labels: - name: mysql - env: production -spec: - replicas: 3 - strategy: - type: RollingUpdate - template: - metadata: - labels: - name: mysql - spec: - containers: - - name: mysql - image: mysql - ports: - - containerPort: 6379 - env: - - name: MYSQL_ROOT_PASSWORD - value: something-password - - name: MYSQL_ALLOW_EMPTY_PASSWORD - value: "" - - name: MYSQL_RANDOM_ROOT_PASSWORD - value: something-password diff --git a/_resources/dummy-cluster/namespace.yml b/_resources/dummy-cluster/namespace.yml deleted file mode 100644 index 70f4ee1..0000000 --- a/_resources/dummy-cluster/namespace.yml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: prompt \ No newline at end of file diff --git a/_resources/dummy-cluster/rc.yml b/_resources/dummy-cluster/rc.yml deleted file mode 100644 index f69c836..0000000 --- a/_resources/dummy-cluster/rc.yml +++ /dev/null @@ -1,101 +0,0 @@ ---- -apiVersion: extensions/v1beta1 -kind: ReplicationController -metadata: - name: web - labels: - name: web - env: production -spec: - replicas: 3 - strategy: - type: RollingUpdate - template: - metadata: - labels: - name: web - spec: - containers: - - name: web - image: dockercloud/hello-world - env: - - name: LISTEN_PORT - value: "80" - ports: - - containerPort: 80 ---- -apiVersion: extensions/v1beta1 -kind: ReplicationController -metadata: - name: user - labels: - name: user - env: production -spec: - replicas: 3 - strategy: - type: RollingUpdate - template: - metadata: - labels: - name: user - spec: - containers: - - name: user - image: dockercloud/hello-world - env: - - name: LISTEN_PORT - value: "8000" - ports: - - containerPort: 8000 ---- -apiVersion: extensions/v1beta1 -kind: ReplicationController -metadata: - name: redis - labels: - name: redis - env: production -spec: - replicas: 3 - strategy: - type: RollingUpdate - template: - metadata: - labels: - name: redis - spec: - containers: - - name: redis - image: redis - ports: - - containerPort: 6379 ---- -apiVersion: extensions/v1beta1 -kind: ReplicationController -metadata: - name: mysql - labels: - name: mysql - env: production -spec: - replicas: 3 - strategy: - type: RollingUpdate - template: - metadata: - labels: - name: mysql - spec: - containers: - - name: mysql - image: mysql - ports: - - containerPort: 6379 - env: - - name: MYSQL_ROOT_PASSWORD - value: something-password - - name: MYSQL_ALLOW_EMPTY_PASSWORD - value: "" - - name: MYSQL_RANDOM_ROOT_PASSWORD - value: something-password diff --git a/_resources/dummy-cluster/secret.yml b/_resources/dummy-cluster/secret.yml deleted file mode 100644 index 221e0cf..0000000 --- a/_resources/dummy-cluster/secret.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -apiVersion: v1 -kind: Secret -metadata: - name: mysql-secret -type: Opaque -data: - rootPassword: c29tZS1wYXNzd29yZAo= ---- -apiVersion: v1 -kind: Secret -metadata: - name: redis-secret -type: Opaque -data: - rootPassword: c29tZS1wYXNzd29yZAo= diff --git a/_resources/dummy-cluster/service.yml b/_resources/dummy-cluster/service.yml deleted file mode 100644 index fc42062..0000000 --- a/_resources/dummy-cluster/service.yml +++ /dev/null @@ -1,68 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: web - labels: - name: web - env: production -spec: - type: LoadBalancer - ports: - - port: 80 - protocol: TCP - targetPort: 80 - selector: - name: kube-prompt ---- -apiVersion: v1 -kind: Service -metadata: - name: user - labels: - name: user -spec: - selector: - name: user - ports: - - port: 8000 - nodePort: 30100 - protocol: TCP - name: user - selector: - name: kube-prompt - type: NodePort ---- -apiVersion: v1 -kind: Service -metadata: - name: redis - labels: - name: redis -spec: - selector: - name: redis - ports: - - port: 6379 - protocol: TCP - name: redis - selector: - name: kube-prompt - type: ClusterIP ---- -apiVersion: v1 -kind: Service -metadata: - name: mysql - labels: - name: mysql -spec: - selector: - name: mysql - ports: - - port: 3306 - protocol: TCP - name: mysql - selector: - name: kube-prompt - type: ClusterIP