Code Monkey home page Code Monkey logo

k8s-deploy-production's People

Contributors

bacherfl avatar collinjlesko avatar dirkwall avatar jetzlstorfer avatar johannes-b avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

k8s-deploy-production's Issues

apiVersion: extensions/v1beta1 deprecated in 1.16

Hey All,

I tried deploying sockshops on my k8s cluster and ran into the following error message:
unable to recognize "k8s-deploy-production-master\carts.yml": no matches for kind "Deployment" in version "extensions/v1beta1"

I believe its due to apiVersion: extensions/v1beta1 being deprecated in 1.16 of kubernetes.

https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/

EDIT:
as a workaround: adding the below after the replicas lets the yaml files to be built.
selector:
matchLabels:
app: queue-master
version: v1

FInal output for one yaml:

apiVersion: apps/v1
kind: Deployment
metadata:
name: queue-master-v1
namespace: production
spec:
replicas: 1
selector:
matchLabels:
app: queue-master
version: v1
template:
metadata:
labels:
app: queue-master
version: v1
spec:
containers:
- name: queue-master
image: to-be-replaced-by-jenkins
env:
- name: JAVA_OPTS
value: -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom
- name: DT_TAGS
value: "product=sockshop"
- name: DT_CUSTOM_PROP
value: "SERVICE_TYPE=BACKEND"
resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 400m
memory: 1024Mi
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /tmp
name: tmp-volume
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 15
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 15
volumes:
- name: tmp-volume
emptyDir:
medium: Memory
nodeSelector:
beta.kubernetes.io/os: linux

apiVersion: v1
kind: Service
metadata:
name: queue-master
labels:
app: queue-master
namespace: production
spec:
ports:

  • name: http
    port: 80
    targetPort: 8080
    selector:
    app: queue-master

hope this helps.

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.