Skip to content
/ svb Public

Simple demo container. Showing information about the container environment.

Notifications You must be signed in to change notification settings

jbriard/svb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Svb

Simple demo container for Scaleway

SVB screenshot

Build docker container

docker build -t svb .

Deploy Container

docker run -d --name svb -p 8080:8080 svb

Deploy on Kubernetes

kind: Deployment
metadata:
  name: svb
spec:
  replicas: 2
  selector:
    matchLabels:
      app: svb
  template:
    metadata:
      labels:
        app: svb
    spec:
      containers:
      - name: svb
        image: justinbriard/svb:latest
        ports:
        - containerPort: 8080
        env:
          - name: MY_NODE_NAME
            valueFrom:
              fieldRef:
                fieldPath: spec.nodeName
          - name: MY_POD_NAME
            valueFrom:
              fieldRef:
                fieldPath: metadata.name
          - name: MY_POD_NAMESPACE
            valueFrom:
              fieldRef:
                fieldPath: metadata.namespace
          - name: MY_POD_IP
            valueFrom:
              fieldRef:
                fieldPath: status.podIP
          - name: MY_POD_SERVICE_ACCOUNT
            valueFrom:
              fieldRef:
                fieldPath: spec.serviceAccountName
---
apiVersion: v1
kind: Service
metadata:
  name: svb-svc
spec:
  ports:
  - port: 80
    targetPort: 8080
    protocol: TCP
    name: http
  selector:
    app: svb

TODO

  • More

About

Simple demo container. Showing information about the container environment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published