kubernetea Labs

Lab 1 : Replicaset lab

apiVersion: apps/v1
kind: ReplicaSet
metadata:
  namespace: yourname
  name: frontend
  labels:
    app: guestbook
    tier: frontend
spec:
  # modify replicas according to your case
  replicas: 3
  selector:
    matchLabels:
      tier: frontend
  template:
    metadata:
      labels:
        tier: frontend
    spec:
      containers:
      - name: php-redis
        image: gcr.io/google_samples/gb-frontend:v3

Lab 2 : Create Statfulset for mySQl DB with PVC and Secret

Step 1: Create secret with password

Last updated

Was this helpful?