Azure Kubernetes Service Continuous Integration/Continuous Deployment demo with Visual Studio Team Services
For more information and testing instructions check the blog post here
Demo app for Azure Kubernetes Service - Visual Studio Team Services CI/CD demo
For more information and testing instructions check the blog post here
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.