Sha256: 46a229ff383e625e2766ce3f464c9f6fad23bd72d011988c7eacd1000efb7136

Contents?: true

Size: 1.97 KB

Versions: 5

Compression:

Stored size: 1.97 KB

Contents

apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
  labels:
    app.kubernetes.io/name: web
    app.kubernetes.io/component: web
    app.kubernetes.io/part-of: waylon
spec:
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 2
      maxUnavailable: 0
  selector:
    matchLabels:
      app.kubernetes.io/component: web
      app.kubernetes.io/part-of: waylon
  template:
    metadata:
      labels:
        app.kubernetes.io/name: web
        app.kubernetes.io/component: web
        app.kubernetes.io/part-of: waylon
    spec:
      securityContext:
        runAsUser: 1000
        runAsGroup: 1000
      volumes:
      - name: tmpvol
        emptyDir: {}
      containers:
      - name: web
        # This MUST be set to a real image
        image: MISSING
        imagePullPolicy: IfNotPresent
        stdin: true
        tty: true
        args: ["web"]
        env:
        - name: REDIS
          value: redis:6379
        - name: LOG_LEVEL
          value: DEBUG
        envFrom:
        - secretRef:
            name: waylon-secret
        resources:
          limits:
            memory: 256Mi
            cpu: 250m
          requests:
            memory: 64Mi
            cpu: 10m
        livenessProbe:
          tcpSocket:
            port: waylon
          timeoutSeconds: 2
          initialDelaySeconds: 2
          periodSeconds: 2
          failureThreshold: 3
        readinessProbe:
          httpGet:
            path: /ping
            port: waylon
          timeoutSeconds: 6
          initialDelaySeconds: 2
          periodSeconds: 10
          failureThreshold: 3
        ports:
        - name: waylon
          containerPort: 9292
          protocol: TCP
        volumeMounts:
        - mountPath: /tmp
          name: tmpvol
        securityContext:
          allowPrivilegeEscalation: false
          privileged: false
          runAsNonRoot: true
          readOnlyRootFilesystem: true
          capabilities:
            drop:
              - all

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
waylon-0.3.0 examples/deploying/k8s/web-deployment.yaml
waylon-0.2.6 examples/deploying/k8s/web-deployment.yaml
waylon-0.2.5 examples/deploying/k8s/web-deployment.yaml
waylon-0.2.4 examples/deploying/k8s/web-deployment.yaml
waylon-0.2.2 examples/deploying/k8s/web-deployment.yaml