Coder Social home page Coder Social logo

digitalocean / kubernetes-sample-apps Goto Github PK

View Code? Open in Web Editor NEW
249.0 11.0 155.0 6.66 MB

Example DigitalOcean Kubernetes workload with service exposed through a DO load-balancer.

License: MIT License

Dockerfile 3.74% Shell 3.81% HTML 9.24% CSS 3.93% JavaScript 3.79% C# 4.26% Go 24.08% Python 46.32% Starlark 0.80% Procfile 0.02%
digitalocean kubernetes load-balancer example

kubernetes-sample-apps's Introduction

DigitalOcean Kubernetes Sample Apps

This repository contains a collection of Kubernetes applications that can be used in various projects. Each sample application has a dedicated folder to keep all resources, and main documentation.

Kubernetes sample applications provided by this repository:

kubernetes-sample-apps's People

Contributors

bikram20 avatar mgibson323 avatar nanzhong avatar povode avatar shev-pro avatar timoreimann avatar v-bpastiu avatar v-ctiutiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kubernetes-sample-apps's Issues

ERROR [builder 4/4] RUN npm install --only=production

When running make-docker-images.sh script I've encountered the following error:

ERROR [builder 4/4] RUN npm install --only=production

> [builder 4/4] RUN npm install --only=production:
#0 2.257 npm WARN config only Use --omit=dev to omit dev dependencies from the install.
#0 88.43 npm ERR! code ENOTFOUND
#0 88.43 npm ERR! syscall getaddrinfo
#0 88.43 npm ERR! errno ENOTFOUND
#0 88.45 npm ERR! network request to https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz failed, reason: ``getaddrinfo ENOTFOUND registry.npmjs.org
#0 88.45 npm ERR! network This is a problem related to network connectivity.
#0 88.45 npm ERR! network In most cases you are behind a proxy or have bad network settings.
#0 88.45 npm ERR! network
#0 88.45 npm ERR! network If you are behind a proxy, please make sure that the
#0 88.45 npm ERR! network 'proxy' config is set properly. See: 'npm help config'
#0 88.47
#0 88.47 npm ERR! A complete log of this run can be found in:
#0 88.47 npm ERR! /root/.npm/_logs/2022-10-13T01_25_44_999Z-debug-0.log
------
ERROR: failed to solve: executor failed running [/bin/sh -c npm install --only=production]: exit code: 1

What could be the reason for this error? I'm running this on Mac.

invalid apiVersion "client.authentication.k8s.io/v1beta1"

Got this error when following the example and trying the second step:

2. Check that your cluster is available: kubectl --context do-nyc1-example get nodes

Output with error message:

☹  kubectl --context do-nyc1-example get nodes
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1beta1"

Repo notes:
doctl version: 1.20.0-release

kubectl version:

Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1beta1"

Add labels to emojivoto services

We need to add labels to some emojivoto sample app services.
This sample app will be used in the starter kit for demonstration purposes.
Adding labels to services will ease configuring of additionalServiceMonitors for Prometheus.

Update Deployment apiVersion and spec.selectors for k8s 1.16

DO's k8s has now been updated to version 1.16.

The Deployment version extensions/v1beta1 in the manifest.yaml is outdated and should be replaced with apps/v1

Details on this deprecation can be found here

The new setup also needs a change to the selector:

spec:
  selectors:
    matchLabels: 
      app: doks-example

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.