GithubHelp home page GithubHelp logo

dgkanatsios / acsk8svstsdemo Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 34.0 21 KB

Demo app for Azure Kubernetes Service - Visual Studio Team Services CI/CD demo

Home Page: https://dgkanatsios.com/2017/05/29/creating-a-cicd-pipeline-on-azure-container-services-with-kubernetes-and-visual-studio-team-services/

CSS 1.97% JavaScript 38.21% HTML 16.87% C# 42.94%
kubernetes continuous-integration continuous-deployment azure azure-container-service azure-container-registry

acsk8svstsdemo's Introduction

unofficial Google Analytics for GitHub

Azure Kubernetes Service Continuous Integration/Continuous Deployment demo with Visual Studio Team Services

For more information and testing instructions check the blog post here

acsk8svstsdemo's People

Contributors

dgkanatsios avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acsk8svstsdemo's Issues

Getting error Service-b deployment

I have applied all steps. I am getting error like following


2018-06-22T05:32:38.8117343Z ##[error]The Deployment "service-b-deployment" is invalid: 
2018-06-22T05:32:38.8822623Z ##[error]* spec.selector: Required value
2018-06-22T05:32:38.9579684Z ##[error]* spec.template.metadata.labels: Invalid value: map[string]string{"app":"demo", "name":"service-b"}: `selector` does not match template `labels`
2018-06-22T05:32:39.0438744Z ##[error]/usr/local/bin/kubectl failed with return code: 1

My yaml file. //

apiVersion: v1
kind: Pod
metadata:
  name: service-a
  labels:
    name: service-a
    app: demo
spec:
  containers:
  - name: service-a
    image: <<myazure registry>>/service-a:15
    ports:
    - containerPort: 80
      protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: service-b-deployment
  labels:
    name: service-b
    app: demo
spec:
  strategy:
    type: Recreate
  replicas: 1
  template:
    metadata:
      labels:
        name: service-b
        app: demo
    spec:
      containers:
      - name: service-b
        image: <<myazure registry>>/service-b:15
        ports:
        - containerPort: 80
          protocol: TCP
---
apiVersion: v1
kind: Pod
metadata:
  name: mycache
  labels:
    name: mycache
    app: demo
spec:
  containers:
  - name: mycache
    image: redis:alpine
    ports:
    - containerPort: 6379
      protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
  name: service-a-k8sservice
  labels:
    name: service-a
    app: demo
spec:
  ports:
    # the port that this service should serve on
    - port: 80
      targetPort: 80
      protocol: TCP
      name: http
  # label keys and values that must match in order to receive traffic for this service
  selector:
    name: service-a
    app: demo
  type: LoadBalancer
---
apiVersion: v1
kind: Service
metadata:
  name: service-b-k8sservice
  labels:
    name: service-b
    app: demo
spec:
  ports:
    # the port that this service should serve on
    - port: 80
      targetPort: 80
      protocol: TCP
      name: http
  # label keys and values that must match in order to receive traffic for this service
  selector:
    name: service-b
    app: demo
  type: NodePort
---
apiVersion: v1
kind: Service
metadata:
  name: mycache-k8sservice
  labels:
    name: mycache
    app: demo
spec:
  ports:
    - port: 6379
      targetPort: 6379
      name: redis
      protocol: TCP
  selector:
    name: mycache
    app: demo
  type: NodePort

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.